mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Fix
This commit is contained in:
1 parent
e7858ac4a3
commit
254a2cf97a
1 file changed
+2
-6
@@ -27,11 +27,7 @@ class RoomsApi extends ApiController{
|
||||
public function update($roomId){
|
||||
//$this->requireAuth();
|
||||
|
||||
$subDevicesData = SubDeviceManager::getSubdevicesByRoomIds($roomIds);
|
||||
|
||||
foreach ($roomsData as $roomKey => $roomData) {
|
||||
$response[] = isset($subDevicesData[$roomData['room_id']]) ? $subDevicesData[$roomData['room_id']] : [];
|
||||
}
|
||||
$this->response($response);
|
||||
$subDevicesData = SubDeviceManager::getSubdevicesByRoomIds([$roomId]);
|
||||
$this->response($subDevicesData);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user