mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 08:24:55 +00:00
using new tags relation with space
This commit is contained in:
@ -236,12 +236,8 @@ export class SpaceService {
|
|||||||
'incomingConnections.disabled = :incomingConnectionDisabled',
|
'incomingConnections.disabled = :incomingConnectionDisabled',
|
||||||
{ incomingConnectionDisabled: false },
|
{ incomingConnectionDisabled: false },
|
||||||
)
|
)
|
||||||
.leftJoinAndSelect(
|
.leftJoinAndSelect('space.productAllocations', 'productAllocations')
|
||||||
'space.tags',
|
.leftJoinAndSelect('productAllocations.tags', 'tags')
|
||||||
'tags',
|
|
||||||
'tags.disabled = :tagDisabled',
|
|
||||||
{ tagDisabled: false },
|
|
||||||
)
|
|
||||||
.leftJoinAndSelect('tags.product', 'tagProduct')
|
.leftJoinAndSelect('tags.product', 'tagProduct')
|
||||||
.leftJoinAndSelect(
|
.leftJoinAndSelect(
|
||||||
'space.subspaces',
|
'space.subspaces',
|
||||||
@ -250,11 +246,10 @@ export class SpaceService {
|
|||||||
{ subspaceDisabled: false },
|
{ subspaceDisabled: false },
|
||||||
)
|
)
|
||||||
.leftJoinAndSelect(
|
.leftJoinAndSelect(
|
||||||
'subspaces.tags',
|
'subspaces.productAllocations',
|
||||||
'subspaceTags',
|
'subspaceProductAllocations',
|
||||||
'subspaceTags.disabled = :subspaceTagsDisabled',
|
|
||||||
{ subspaceTagsDisabled: false },
|
|
||||||
)
|
)
|
||||||
|
.leftJoinAndSelect('subspaceProductAllocations.tags', 'subspaceTags')
|
||||||
.leftJoinAndSelect('subspaceTags.product', 'subspaceTagProduct')
|
.leftJoinAndSelect('subspaceTags.product', 'subspaceTagProduct')
|
||||||
.leftJoinAndSelect('space.spaceModel', 'spaceModel')
|
.leftJoinAndSelect('space.spaceModel', 'spaceModel')
|
||||||
.where('space.community_id = :communityUuid', { communityUuid })
|
.where('space.community_id = :communityUuid', { communityUuid })
|
||||||
|
|||||||
Reference in New Issue
Block a user