mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:14:54 +00:00
fixed issue in create space with space model
This commit is contained in:
@ -481,6 +481,7 @@ export class SpaceModelService {
|
|||||||
await this.subspaceRepository.save(subspace);
|
await this.subspaceRepository.save(subspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const subspaceAllocations = subspaceModel.productAllocations.map(
|
const subspaceAllocations = subspaceModel.productAllocations.map(
|
||||||
(modelAllocation) =>
|
(modelAllocation) =>
|
||||||
this.subspaceProductAllocationRepository.create({
|
this.subspaceProductAllocationRepository.create({
|
||||||
|
|||||||
@ -125,6 +125,12 @@ export class ValidationService {
|
|||||||
'children',
|
'children',
|
||||||
'subspaces',
|
'subspaces',
|
||||||
'tags',
|
'tags',
|
||||||
|
'productAllocations',
|
||||||
|
'productAllocations.product',
|
||||||
|
'productAllocations.tags',
|
||||||
|
'subspaces.productAllocations',
|
||||||
|
'subspaces.productAllocations.tags',
|
||||||
|
'subspaces.productAllocations.product',
|
||||||
'subspaces.tags',
|
'subspaces.tags',
|
||||||
'subspaces.devices',
|
'subspaces.devices',
|
||||||
],
|
],
|
||||||
@ -175,6 +181,7 @@ export class ValidationService {
|
|||||||
'subspaceModels',
|
'subspaceModels',
|
||||||
'subspaceModels.productAllocations',
|
'subspaceModels.productAllocations',
|
||||||
'subspaceModels.productAllocations.tags',
|
'subspaceModels.productAllocations.tags',
|
||||||
|
'subspaceModels.productAllocations.product',
|
||||||
'productAllocations.product',
|
'productAllocations.product',
|
||||||
'productAllocations.tags',
|
'productAllocations.tags',
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user