From 7dd632d0d3ef75ea1e408492dfa2d6ae5148d815 Mon Sep 17 00:00:00 2001 From: Mhd Zayd Skaff Date: Fri, 13 Jun 2025 14:18:53 +0300 Subject: [PATCH] task: update getOneSpace API to match revamp structure --- src/space/services/space.service.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/space/services/space.service.ts b/src/space/services/space.service.ts index 1312030..e789ba2 100644 --- a/src/space/services/space.service.ts +++ b/src/space/services/space.service.ts @@ -271,7 +271,6 @@ export class SpaceService { } } - // todo refactor this method to eliminate wrong use of tags async findOne(params: GetSpaceParam): Promise { const { communityUuid, spaceUuid, projectUuid } = params; try { @@ -282,19 +281,6 @@ export class SpaceService { const queryBuilder = this.spaceRepository .createQueryBuilder('space') - .leftJoinAndSelect('space.parent', 'parent') - .leftJoinAndSelect( - 'space.children', - 'children', - 'children.disabled = :disabled', - { disabled: false }, - ) - .leftJoinAndSelect( - 'space.incomingConnections', - 'incomingConnections', - 'incomingConnections.disabled = :incomingConnectionDisabled', - { incomingConnectionDisabled: false }, - ) .leftJoinAndSelect('space.productAllocations', 'productAllocations') .leftJoinAndSelect('productAllocations.tag', 'spaceTag') .leftJoinAndSelect('productAllocations.product', 'spaceProduct')