aadded product item to space

This commit is contained in:
hannathkadher
2024-12-12 14:37:44 +04:00
parent 72bebe3b06
commit b8590841a8
17 changed files with 328 additions and 102 deletions

View File

@ -59,7 +59,12 @@ export class ValidationService {
async validateSpaceModel(spaceModelUuid: string): Promise<SpaceModelEntity> {
const spaceModel = await this.spaceModelRepository.findOne({
where: { uuid: spaceModelUuid },
relations: ['subspaceModels'],
relations: [
'subspaceModels',
'spaceProductModels',
'spaceProductModels.product',
'spaceProductModels.items',
],
});
if (!spaceModel) {