diff --git a/app/models/space_api.rb b/app/models/space_api.rb index 703f173..266abfd 100644 --- a/app/models/space_api.rb +++ b/app/models/space_api.rb @@ -27,7 +27,7 @@ def add_people_now_present value: Presence.present_users.count} if Presence.present_users.count > 0 - present_people_reading[:names] = Presence.present_users.map(&:name) + present_people_reading[:names] = Presence.present_users.map(&:username) end add_sensor name: :people_now_present, data: present_people_reading