mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-09 22:57:24 +00:00
fix: check if device not found (#458)
This commit is contained in:
@ -717,6 +717,9 @@ export class DeviceService {
|
||||
relations: ['productDevice'],
|
||||
});
|
||||
|
||||
if (!deviceDetails) {
|
||||
throw new NotFoundException('Device not found');
|
||||
}
|
||||
let result = await this.tuyaService.getDeviceDetails(deviceId);
|
||||
|
||||
if (!result) {
|
||||
|
Reference in New Issue
Block a user