Skip to content

Commit

Permalink
feat: ajusts quary to make it the same as allProjects query
Browse files Browse the repository at this point in the history
  • Loading branch information
Reshzera committed Aug 7, 2024
1 parent f6eb385 commit a0c6242
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/repositories/projectRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ export const totalProjectsPerDate = async (
}

if (onlyListed) {
query.andWhere(`project."reviewStatus" = 'Listed'`);
query.andWhere(
`project.statusId = ${ProjStatus.active} AND project.reviewStatus = :reviewStatus`,
{ reviewStatus: ReviewStatus.Listed },
);
}

if (networkId) {
Expand Down

0 comments on commit a0c6242

Please sign in to comment.