mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
Merge branch 'dev'
This commit is contained in:
@ -166,13 +166,7 @@ export class SubspaceDeviceService {
|
|||||||
private async findDevice(deviceUuid: string) {
|
private async findDevice(deviceUuid: string) {
|
||||||
const device = await this.deviceRepository.findOne({
|
const device = await this.deviceRepository.findOne({
|
||||||
where: { uuid: deviceUuid },
|
where: { uuid: deviceUuid },
|
||||||
relations: [
|
relations: ['subspace', 'tag', 'spaceDevice'],
|
||||||
'subspace',
|
|
||||||
'tag',
|
|
||||||
'tag.space',
|
|
||||||
'tag.subspace',
|
|
||||||
'spaceDevice',
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
if (!device) {
|
if (!device) {
|
||||||
this.throwNotFound('Device', deviceUuid);
|
this.throwNotFound('Device', deviceUuid);
|
||||||
|
Reference in New Issue
Block a user