fixed automation dto

This commit is contained in:
hannathkadher
2024-11-04 19:43:49 +04:00
parent a133f78bb3
commit 8cbe910f4c
4 changed files with 12 additions and 22 deletions
@@ -112,12 +112,6 @@ export class SubspaceDeviceService {
}
device.subspace = null;
console.log(
'Starting to save device with null subspace:',
new Date(),
device.subspace,
);
const updatedDevice = await this.deviceRepository.save(device);
return new SuccessResponseDto({
@@ -217,7 +211,7 @@ export class SubspaceDeviceService {
} as GetDeviceDetailsInterface;
} catch (error) {
throw new HttpException(
'Error fetching device details from Tuya',
`Error fetching device details from Tuya for device uuid ${deviceId}.`,
HttpStatus.INTERNAL_SERVER_ERROR,
);
}