mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
aadded product item to space
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user