fixed issue in create space with space model

This commit is contained in:
hannathkadher
2025-03-10 15:52:11 +04:00
parent 04d64a6f38
commit a8fbf2b510
2 changed files with 8 additions and 0 deletions

View File

@ -481,6 +481,7 @@ export class SpaceModelService {
await this.subspaceRepository.save(subspace);
}
const subspaceAllocations = subspaceModel.productAllocations.map(
(modelAllocation) =>
this.subspaceProductAllocationRepository.create({

View File

@ -125,6 +125,12 @@ export class ValidationService {
'children',
'subspaces',
'tags',
'productAllocations',
'productAllocations.product',
'productAllocations.tags',
'subspaces.productAllocations',
'subspaces.productAllocations.tags',
'subspaces.productAllocations.product',
'subspaces.tags',
'subspaces.devices',
],
@ -175,6 +181,7 @@ export class ValidationService {
'subspaceModels',
'subspaceModels.productAllocations',
'subspaceModels.productAllocations.tags',
'subspaceModels.productAllocations.product',
'productAllocations.product',
'productAllocations.tags',
],