Skip to content

Commit 52e26b1

Browse files
author
James Cori
committed
Merge branch 'master' into develop
2 parents b99abad + 0f7856b commit 52e26b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function searchChallenges (currentUser, criteria) {
203203
}
204204

205205
if (criteria.name) {
206-
boolQuery.push({ match: { 'name': criteria.name } })
206+
boolQuery.push({ wildcard: { 'name': `*${criteria.name}*` } })
207207
}
208208
if (criteria.description) {
209209
boolQuery.push({ match: { 'description': criteria.description } })

0 commit comments

Comments
 (0)