mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 16:44:55 +00:00
fixed the response of batch get status
This commit is contained in:
@ -62,6 +62,7 @@ export class DeviceController {
|
|||||||
projectUuid,
|
projectUuid,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiBearerAuth()
|
@ApiBearerAuth()
|
||||||
@UseGuards(PermissionsGuard)
|
@UseGuards(PermissionsGuard)
|
||||||
@Permissions('DEVICE_BATCH_CONTROL')
|
@Permissions('DEVICE_BATCH_CONTROL')
|
||||||
|
|||||||
@ -484,10 +484,11 @@ export class DeviceService {
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
return new SuccessResponseDto({
|
return new SuccessResponseDto({
|
||||||
message: `Devices status fetched successfully`,
|
message: `Devices status fetched successfully`,
|
||||||
data: {
|
data: {
|
||||||
status: statuses[0].result,
|
status: statuses[0].result.data,
|
||||||
devices: statuses,
|
devices: statuses,
|
||||||
},
|
},
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
|
|||||||
Reference in New Issue
Block a user