mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:54:54 +00:00
fix some issues
This commit is contained in:
@ -74,9 +74,8 @@ export class DeviceService {
|
|||||||
}
|
}
|
||||||
async getDevicesByGroupId(getDeviceByGroupIdDto: GetDeviceByGroupIdDto) {
|
async getDevicesByGroupId(getDeviceByGroupIdDto: GetDeviceByGroupIdDto) {
|
||||||
try {
|
try {
|
||||||
const devicesIds = await this.getDevicesByGroupIdTuya(
|
const devicesIds: GetDevicesByGroupIdInterface =
|
||||||
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.getDevicesByDeviceId(device.dev_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user