mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
Merge pull request #191 from SyncrowIOT/feat/add-tag-to-list
list space model should list tags
This commit is contained in:
@ -21,16 +21,14 @@ const mappingInclude: { [key: string]: any } = {
|
||||
},
|
||||
'space-model': {
|
||||
subspaceModels: 'subspace-model',
|
||||
spaceProductModels: 'space-product-model',
|
||||
tags: 'tag_model',
|
||||
},
|
||||
'subspace-model': {
|
||||
productModels: 'subspace-product-model',
|
||||
tags: 'tag_model',
|
||||
},
|
||||
'subspace-product-model': {
|
||||
itemModels: true,
|
||||
},
|
||||
'space-product-model': {
|
||||
items: true,
|
||||
tag_model: {
|
||||
tag_model: true,
|
||||
product: true,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -113,7 +113,8 @@ export class SpaceModelService {
|
||||
pageable.where = {
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user