Skip to content

Commit

Permalink
add best match sort option
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Sep 19, 2024
1 parent a14c97d commit 7007987
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/entities/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export enum SortingField {
InstantBoosting = 'InstantBoosting',
ActiveQfRoundRaisedFunds = 'ActiveQfRoundRaisedFunds',
EstimatedMatching = 'EstimatedMatching',
BestMatch = 'BestMatch',
}

export enum FilterField {
Expand Down
2 changes: 2 additions & 0 deletions src/repositories/projectRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ export const filterProjectsQuery = (params: FilterProjectQueryInputParams) => {
.addOrderBy('project.verified', 'DESC'); // Secondary sorting condition
}
break;
case SortingField.BestMatch:
break;

default:
query
Expand Down

0 comments on commit 7007987

Please sign in to comment.