mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 09:24:54 +00:00
add tag_id
This commit is contained in:
@ -78,6 +78,7 @@ export class DeviceEntity extends AbstractEntity<DeviceDto> {
|
|||||||
@OneToOne(() => TagEntity, (tag) => tag.device, {
|
@OneToOne(() => TagEntity, (tag) => tag.device, {
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
|
@JoinColumn({ name: 'tag_id' })
|
||||||
tag: TagEntity;
|
tag: TagEntity;
|
||||||
|
|
||||||
constructor(partial: Partial<DeviceEntity>) {
|
constructor(partial: Partial<DeviceEntity>) {
|
||||||
|
|||||||
@ -395,7 +395,6 @@ export class SpaceModelService {
|
|||||||
if (!spaceModel) {
|
if (!spaceModel) {
|
||||||
throw new HttpException('space model not found', HttpStatus.NOT_FOUND);
|
throw new HttpException('space model not found', HttpStatus.NOT_FOUND);
|
||||||
}
|
}
|
||||||
console.log(JSON.stringify(spaceModel));
|
|
||||||
return spaceModel;
|
return spaceModel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user