diff --git a/src/device/services/device.service.ts b/src/device/services/device.service.ts index 615eb68..49a6a86 100644 --- a/src/device/services/device.service.ts +++ b/src/device/services/device.service.ts @@ -960,7 +960,12 @@ export class DeviceService { await this.validateProject(param.projectUuid); const devices = await this.deviceRepository.find({ - where: { isActive: true }, + where: { + isActive: true, + spaceDevice: { + community: { project: { uuid: param.projectUuid } }, + }, + }, relations: [ 'spaceDevice.parent', 'spaceDevice.community',