diff --git a/src/space-model/services/subspace/subspace-model.service.ts b/src/space-model/services/subspace/subspace-model.service.ts index fa13c1d..c070d6d 100644 --- a/src/space-model/services/subspace/subspace-model.service.ts +++ b/src/space-model/services/subspace/subspace-model.service.ts @@ -72,7 +72,7 @@ export class SubSpaceModelService { subSpaceModelDtos: CreateSubspaceModelDto[], spaceModel: SpaceModelEntity, queryRunner: QueryRunner, - otherTags?: CreateTagModelDto[], + otherTags?: ProcessTagDto[], ): Promise { try { await this.validateInputDtos(subSpaceModelDtos, spaceModel); @@ -94,13 +94,13 @@ export class SubSpaceModelService { .filter((_, i) => i !== index) .flatMap((otherDto) => otherDto.tags || []); if (dto.tags && dto.tags.length > 0) { - subspace.tags = await this.tagModelService.createTags( + /* subspace.tags = await this.tagModelService.createTags( dto.tags, queryRunner, null, subspace, [...(otherTags || []), ...otherDtoTags], - ); + ); */ } }), ); @@ -213,11 +213,13 @@ export class SubSpaceModelService { queryRunner: QueryRunner, ): Promise { try { - const createTagDtos: CreateTagModelDto[] = + const createTagDtos: ProcessTagDto[] = subspace.tags?.map((tag) => ({ - tag: tag.tag, + name: tag.tag, uuid: tag.uuid, productUuid: tag.productUuid, + + projectUuid: null, })) || []; const [createdSubspaceModel] = await this.createSubSpaceModels(