Skip to content

Additional fixes for PM-21 #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove fix for dev index that was different than prod
  • Loading branch information
jmgasper committed Aug 5, 2024
commit fa97d66ae69050c1b7bbae69abea8736d29fe729
11 changes: 0 additions & 11 deletions src/services/ChallengeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,17 +458,6 @@ async function searchChallenges(currentUser, criteria) {

let sortByProp = criteria.sortBy ? criteria.sortBy : "created";

// Add '.keyword' to the end of the sort by prop for certain fields
// (TOP-2364)
if(sortByProp == "updatedBy" ||
sortByProp == "createdBy" ||
sortByProp == "name" ||
sortByProp == "type" ||
sortByProp == "status") {

sortByProp = sortByProp + ".keyword";
}

const sortOrderProp = criteria.sortOrder ? criteria.sortOrder : "desc";

const mustQuery = [];
Expand Down