Skip to content

Commit ed2993b

Browse files
fix sortBy
1 parent e44933a commit ed2993b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/services/ChallengeService.js

-2
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ async function searchChallenges (currentUser, criteria) {
310310
}
311311

312312
let sortByProp = criteria.sortBy ? criteria.sortBy : 'created'
313-
// If property to sort is text, then use its sub-field 'keyword' for sorting
314-
sortByProp = _.includes(constants.challengeTextSortField, sortByProp) ? sortByProp + '.keyword' : sortByProp
315313
const sortOrderProp = criteria.sortOrder ? criteria.sortOrder : 'desc'
316314

317315
const mustQuery = []

0 commit comments

Comments
 (0)