mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
@ -84,7 +84,9 @@ export class DeviceService {
|
|||||||
await this.getDevicesByGroupIdTuya(getDeviceByGroupIdDto);
|
await this.getDevicesByGroupIdTuya(getDeviceByGroupIdDto);
|
||||||
const devicesDetails = await Promise.all(
|
const devicesDetails = await Promise.all(
|
||||||
devicesIds.result.data_list.map(async (device: any) => {
|
devicesIds.result.data_list.map(async (device: any) => {
|
||||||
const deviceData = await this.getDevicesByDeviceId(device.dev_id);
|
const deviceData = await this.getDeviceDetailsByDeviceId(
|
||||||
|
device.dev_id,
|
||||||
|
);
|
||||||
return deviceData.result;
|
return deviceData.result;
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user