Fix
This commit is contained in:
parent
e7858ac4a3
commit
254a2cf97a
@ -27,11 +27,7 @@ class RoomsApi extends ApiController{
|
|||||||
public function update($roomId){
|
public function update($roomId){
|
||||||
//$this->requireAuth();
|
//$this->requireAuth();
|
||||||
|
|
||||||
$subDevicesData = SubDeviceManager::getSubdevicesByRoomIds($roomIds);
|
$subDevicesData = SubDeviceManager::getSubdevicesByRoomIds([$roomId]);
|
||||||
|
$this->response($subDevicesData);
|
||||||
foreach ($roomsData as $roomKey => $roomData) {
|
|
||||||
$response[] = isset($subDevicesData[$roomData['room_id']]) ? $subDevicesData[$roomData['room_id']] : [];
|
|
||||||
}
|
|
||||||
$this->response($response);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user