Skip to content

Commit 3858c5c

Browse files
enforce _.toString on metadata query
1 parent d8b4c18 commit 3858c5c

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
@@ -178,7 +178,7 @@ async function searchChallenges (currentUser, criteria) {
178178
bool: {
179179
must: [
180180
{ match_phrase: { 'metadata.name': metaKey } },
181-
{ match_phrase: { 'metadata.value': criteria[key] } }
181+
{ match_phrase: { 'metadata.value': _.toString(criteria[key]) } }
182182
]
183183
}
184184
})

0 commit comments

Comments
 (0)