diff --git a/drivers/place/attendee_scanner.cr b/drivers/place/attendee_scanner.cr index 2f990bc38f..4089d5f3e1 100644 --- a/drivers/place/attendee_scanner.cr +++ b/drivers/place/attendee_scanner.cr @@ -24,15 +24,15 @@ class Place::AttendeeScanner < PlaceOS::Driver @org_id = nil end - # Grabs the list of systems in the building - getter systems : Hash(String, Array(String)) do - locations.systems.get.as_h.transform_values(&.as_a.map(&.as_s)) - end - getter building_id : String do locations.building_id.get.as_s end + # Grabs the list of systems in the building + getter systems : Hash(String, Array(String)) do + staff_api.systems_in_building(building_id).get.as_h.transform_values(&.as_a.map(&.as_s)) + end + getter org_id : String do building_details = staff_api.zone(building_id).get