Skip to content

Commit a83524d

Browse files
try to fix the listings issue on tasks
1 parent 9fb6c2a commit a83524d

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
@@ -423,7 +423,7 @@ async function searchChallenges (currentUser, criteria) {
423423
mustQuery.push({
424424
bool: {
425425
should: [
426-
...(_.get(memberChallengeIds, 'length', 0) > 0 ? [{ bool: { should: { terms: { _id: memberChallengeIds } } } }] : []),
426+
...(_.get(memberChallengeIds, 'length', 0) > 0 ? [{ bool: { should: [ { terms: { _id: memberChallengeIds } } ] } }] : []),
427427
{ bool: { must_not: { exists: { field: 'task.isTask' } } } },
428428
{ match_phrase: { 'task.isTask': false } },
429429
{

0 commit comments

Comments
 (0)