mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +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);
|
||||
}
|
||||
|
||||
|
||||
const subspaceAllocations = subspaceModel.productAllocations.map(
|
||||
(modelAllocation) =>
|
||||
this.subspaceProductAllocationRepository.create({
|
||||
|
@ -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',
|
||||
],
|
||||
|
Reference in New Issue
Block a user