From 1b02f1c86affa3403496140cf69439c0855e0c66 Mon Sep 17 00:00:00 2001 From: hannathkadher Date: Wed, 29 Jan 2025 14:55:05 +0400 Subject: [PATCH] add tag_id --- libs/common/src/modules/device/entities/device.entity.ts | 1 + src/space-model/services/space-model.service.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/modules/device/entities/device.entity.ts b/libs/common/src/modules/device/entities/device.entity.ts index bdd1ce5..f2a5a1e 100644 --- a/libs/common/src/modules/device/entities/device.entity.ts +++ b/libs/common/src/modules/device/entities/device.entity.ts @@ -78,6 +78,7 @@ export class DeviceEntity extends AbstractEntity { @OneToOne(() => TagEntity, (tag) => tag.device, { nullable: true, }) + @JoinColumn({ name: 'tag_id' }) tag: TagEntity; constructor(partial: Partial) { diff --git a/src/space-model/services/space-model.service.ts b/src/space-model/services/space-model.service.ts index 82054d5..2162c38 100644 --- a/src/space-model/services/space-model.service.ts +++ b/src/space-model/services/space-model.service.ts @@ -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; } }