mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
fix some issues
This commit is contained in:
@ -74,9 +74,8 @@ export class DeviceService {
|
||||
}
|
||||
async getDevicesByGroupId(getDeviceByGroupIdDto: GetDeviceByGroupIdDto) {
|
||||
try {
|
||||
const devicesIds = await this.getDevicesByGroupIdTuya(
|
||||
getDeviceByGroupIdDto,
|
||||
);
|
||||
const devicesIds: GetDevicesByGroupIdInterface =
|
||||
await this.getDevicesByGroupIdTuya(getDeviceByGroupIdDto);
|
||||
const devicesDetails = await Promise.all(
|
||||
devicesIds.result.data_list.map(async (device: any) => {
|
||||
const deviceData = await this.getDevicesByDeviceId(device.dev_id);
|
||||
|
Reference in New Issue
Block a user