mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 18:05:48 +00:00
comment
This commit is contained in:
@ -72,7 +72,7 @@ export class SubSpaceModelService {
|
||||
subSpaceModelDtos: CreateSubspaceModelDto[],
|
||||
spaceModel: SpaceModelEntity,
|
||||
queryRunner: QueryRunner,
|
||||
otherTags?: CreateTagModelDto[],
|
||||
otherTags?: ProcessTagDto[],
|
||||
): Promise<SubspaceModelEntity[]> {
|
||||
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<SubspaceModelEntity> {
|
||||
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(
|
||||
|
Reference in New Issue
Block a user