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