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,