This commit is contained in:
hannathkadher
2025-01-29 14:02:26 +04:00
parent 3366f525ef
commit 64a056cf95
3 changed files with 3 additions and 6 deletions

View File

@ -395,7 +395,7 @@ export class SpaceModelService {
if (!spaceModel) {
throw new HttpException('space model not found', HttpStatus.NOT_FOUND);
}
console.log(JSON.stringify(spaceModel));
return spaceModel;
}
}

View File

@ -409,13 +409,11 @@ export class TagModelService {
HttpStatus.BAD_REQUEST,
);
}
const tagSpace =
spaceModel !== null ? spaceModel : subspaceModel.spaceModel;
return queryRunner.manager.create(TagModel, {
tag: tagDto.tag,
product: product.data,
spaceModel: tagSpace,
spaceModel: spaceModel,
subspaceModel: subspaceModel,
});
} catch (error) {

View File

@ -432,12 +432,11 @@ export class TagService {
HttpStatus.BAD_REQUEST,
);
}
const tagSpace = space !== null ? space : subspace.space;
return queryRunner.manager.create(TagEntity, {
tag: tagDto.tag,
product: product.data,
space: tagSpace,
space: space,
subspace: subspace,
});
} catch (error) {