Skip to content

Commit

Permalink
modify qfround filter join
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Oct 5, 2023
1 parent f756b2e commit 52fcca7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/repositories/projectRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 52fcca7

Please sign in to comment.