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