mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-17 03:05:13 +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, {
|
||||
nullable: true,
|
||||
})
|
||||
@JoinColumn({ name: 'tag_id' })
|
||||
tag: TagEntity;
|
||||
|
||||
constructor(partial: Partial<DeviceEntity>) {
|
||||
|
@ -395,7 +395,6 @@ export class SpaceModelService {
|
||||
if (!spaceModel) {
|
||||
throw new HttpException('space model not found', HttpStatus.NOT_FOUND);
|
||||
}
|
||||
console.log(JSON.stringify(spaceModel));
|
||||
return spaceModel;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user