mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:14:54 +00:00
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