add tag_id

This commit is contained in:
hannathkadher
2025-01-29 14:55:05 +04:00
parent 64a056cf95
commit 1b02f1c86a
2 changed files with 1 additions and 1 deletions

View File

@ -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>) {

View File

@ -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;
}
}