Skip to content

Commit

Permalink
Merge pull request #1145 from Giveth/hotfix_qfround_sorting_to_includ…
Browse files Browse the repository at this point in the history
…e_non_donated_yet

change to leftJoin on estimatedMatchingTable
  • Loading branch information
CarlosQ96 authored Oct 5, 2023
2 parents 6821e05 + fb0c892 commit 1cca468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/repositories/projectRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ export const filterProjectsQuery = (params: FilterProjectQueryInputParams) => {
`project.statusId = ${ProjStatus.active} AND project.reviewStatus = :reviewStatus`,
{ reviewStatus: ReviewStatus.Listed },
);
if (qfRoundId) {
if (qfRoundId || activeQfRoundId) {
query.innerJoinAndSelect(
'project.qfRounds',
'qf_rounds',
'qf_rounds.id = :qfRoundId',
{ qfRoundId },
{ qfRoundId: qfRoundId ? qfRoundId : activeQfRoundId },
);
}
if (!sortingBy || sortingBy === SortingField.InstantBoosting) {
Expand Down Expand Up @@ -168,7 +168,7 @@ export const filterProjectsQuery = (params: FilterProjectQueryInputParams) => {
case SortingField.ActiveQfRoundRaisedFunds:
if (activeQfRoundId) {
query
.innerJoin(
.leftJoin(
'project.projectEstimatedMatchingView',
'projectEstimatedMatchingView',
)
Expand Down

0 comments on commit 1cca468

Please sign in to comment.