mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
Merge pull request #344 from SyncrowIOT/SP-1456-be-internal-server-error-when-we-try-to-save-routine-creation
refactor: clean up unused variable and update destructuring in device service
This commit is contained in:
@ -484,7 +484,6 @@ export class DeviceService {
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
return new SuccessResponseDto({
|
return new SuccessResponseDto({
|
||||||
message: `Devices status fetched successfully`,
|
message: `Devices status fetched successfully`,
|
||||||
data: {
|
data: {
|
||||||
@ -680,7 +679,7 @@ export class DeviceService {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const { productId, id, name, ...rest } = camelCaseResponse.result;
|
const { productId, id, uuid, name, ...rest } = camelCaseResponse.result;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...rest,
|
...rest,
|
||||||
|
Reference in New Issue
Block a user