fixed the response of batch get status

This commit is contained in:
hannathkadher
2025-04-22 10:25:44 +04:00
parent 506f3dae29
commit 2470c8e09a
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,7 @@ export class DeviceController {
projectUuid,
);
}
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('DEVICE_BATCH_CONTROL')

View File

@ -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,