diff --git a/src/space-model/services/space-model.service.ts b/src/space-model/services/space-model.service.ts index 94d215e..2950a64 100644 --- a/src/space-model/services/space-model.service.ts +++ b/src/space-model/services/space-model.service.ts @@ -356,7 +356,11 @@ export class SpaceModelService { relations: [ 'productAllocations', 'subspaceModels', + 'productAllocations.product', + 'productAllocations.tags', 'subspaceModels.productAllocations', + 'subspaceModels.productAllocations.product', + 'subspaceModels.productAllocations.tags', ], }); @@ -374,7 +378,11 @@ export class SpaceModelService { 'devices', 'subspaces', 'productAllocations', + 'productAllocations.product', + 'productAllocations.tags', 'subspaces.productAllocations', + 'subspaces.productAllocations.product', + 'subspaces.productAllocations.product.tags', 'community', ], }); @@ -426,7 +434,6 @@ export class SpaceModelService { } else { await this.spaceRepository.save(space); } - const spaceProductAllocations = spaceModel.productAllocations.map( (modelAllocation) => this.spaceProductAllocationRepository.create({