finished soft delete devices

This commit is contained in:
faris Aljohari
2024-10-07 23:11:16 -05:00
parent e2490515b0
commit 6bfb64370a
10 changed files with 39 additions and 7 deletions

View File

@ -298,6 +298,7 @@ export class ScheduleService {
return await this.deviceRepository.findOne({
where: {
uuid: deviceUuid,
isActive: true,
},
...(withProductDevice && { relations: ['productDevice'] }),
});