From 52fcca7df200ff02a1dea3d89207bfcc502f4b67 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 5 Oct 2023 11:44:53 -0500 Subject: [PATCH] modify qfround filter join --- src/repositories/projectRepository.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/repositories/projectRepository.ts b/src/repositories/projectRepository.ts index 23b9653ea..5e206baa9 100644 --- a/src/repositories/projectRepository.ts +++ b/src/repositories/projectRepository.ts @@ -171,14 +171,13 @@ export const filterProjectsQuery = (params: FilterProjectQueryInputParams) => { .leftJoin( 'project.projectEstimatedMatchingView', 'projectEstimatedMatchingView', + 'projectEstimatedMatchingView.qfRoundId = :qfRoundId', + { qfRoundId: activeQfRoundId }, ) .addSelect([ 'projectEstimatedMatchingView.sumValueUsd', 'projectEstimatedMatchingView.qfRoundId', ]) - .andWhere('projectEstimatedMatchingView.qfRoundId = :qfRoundId', { - qfRoundId: activeQfRoundId, - }) .orderBy( 'projectEstimatedMatchingView.sumValueUsd', OrderDirection.DESC,