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[],
|
subSpaceModelDtos: CreateSubspaceModelDto[],
|
||||||
spaceModel: SpaceModelEntity,
|
spaceModel: SpaceModelEntity,
|
||||||
queryRunner: QueryRunner,
|
queryRunner: QueryRunner,
|
||||||
otherTags?: CreateTagModelDto[],
|
otherTags?: ProcessTagDto[],
|
||||||
): Promise<SubspaceModelEntity[]> {
|
): Promise<SubspaceModelEntity[]> {
|
||||||
try {
|
try {
|
||||||
await this.validateInputDtos(subSpaceModelDtos, spaceModel);
|
await this.validateInputDtos(subSpaceModelDtos, spaceModel);
|
||||||
@ -94,13 +94,13 @@ export class SubSpaceModelService {
|
|||||||
.filter((_, i) => i !== index)
|
.filter((_, i) => i !== index)
|
||||||
.flatMap((otherDto) => otherDto.tags || []);
|
.flatMap((otherDto) => otherDto.tags || []);
|
||||||
if (dto.tags && dto.tags.length > 0) {
|
if (dto.tags && dto.tags.length > 0) {
|
||||||
subspace.tags = await this.tagModelService.createTags(
|
/* subspace.tags = await this.tagModelService.createTags(
|
||||||
dto.tags,
|
dto.tags,
|
||||||
queryRunner,
|
queryRunner,
|
||||||
null,
|
null,
|
||||||
subspace,
|
subspace,
|
||||||
[...(otherTags || []), ...otherDtoTags],
|
[...(otherTags || []), ...otherDtoTags],
|
||||||
);
|
); */
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@ -213,11 +213,13 @@ export class SubSpaceModelService {
|
|||||||
queryRunner: QueryRunner,
|
queryRunner: QueryRunner,
|
||||||
): Promise<SubspaceModelEntity> {
|
): Promise<SubspaceModelEntity> {
|
||||||
try {
|
try {
|
||||||
const createTagDtos: CreateTagModelDto[] =
|
const createTagDtos: ProcessTagDto[] =
|
||||||
subspace.tags?.map((tag) => ({
|
subspace.tags?.map((tag) => ({
|
||||||
tag: tag.tag,
|
name: tag.tag,
|
||||||
uuid: tag.uuid,
|
uuid: tag.uuid,
|
||||||
productUuid: tag.productUuid,
|
productUuid: tag.productUuid,
|
||||||
|
|
||||||
|
projectUuid: null,
|
||||||
})) || [];
|
})) || [];
|
||||||
|
|
||||||
const [createdSubspaceModel] = await this.createSubSpaceModels(
|
const [createdSubspaceModel] = await this.createSubSpaceModels(
|
||||||
|
Reference in New Issue
Block a user