mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
list space model should list tags
This commit is contained in:
@ -21,16 +21,14 @@ const mappingInclude: { [key: string]: any } = {
|
|||||||
},
|
},
|
||||||
'space-model': {
|
'space-model': {
|
||||||
subspaceModels: 'subspace-model',
|
subspaceModels: 'subspace-model',
|
||||||
spaceProductModels: 'space-product-model',
|
tags: 'tag_model',
|
||||||
},
|
},
|
||||||
'subspace-model': {
|
'subspace-model': {
|
||||||
productModels: 'subspace-product-model',
|
tags: 'tag_model',
|
||||||
},
|
},
|
||||||
'subspace-product-model': {
|
tag_model: {
|
||||||
itemModels: true,
|
tag_model: true,
|
||||||
},
|
product: true,
|
||||||
'space-product-model': {
|
|
||||||
items: true,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ export class SpaceModelService {
|
|||||||
pageable.where = {
|
pageable.where = {
|
||||||
project: { uuid: param.projectUuid },
|
project: { uuid: param.projectUuid },
|
||||||
};
|
};
|
||||||
pageable.include = 'subspaceModels,tags,subspaceModels.tags';
|
pageable.include = 'subspaceModels,tags,subspaceModels.tags,tags.product,subspaceModels.tags.product';
|
||||||
|
|
||||||
const customModel = TypeORMCustomModel(this.spaceModelRepository);
|
const customModel = TypeORMCustomModel(this.spaceModelRepository);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user