Skip to content

Commit aaa009d

Browse files
fix work items now showing in listings
1 parent dac7157 commit aaa009d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/services/ChallengeService.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,16 @@ async function searchChallenges (currentUser, criteria) {
590590
}
591591
},
592592
{ bool: { must: { match_phrase: { 'createdBy': currentUser.handle } } } },
593-
] : [])
593+
] : [
594+
{
595+
bool: {
596+
should: [
597+
{ bool: { must: { match_phrase: { 'status': constants.challengeStatuses.Active } } } },
598+
{ bool: { must: { match_phrase: { 'status': constants.challengeStatuses.Completed } } } },
599+
]
600+
}
601+
}
602+
])
594603
]
595604
}
596605
})

0 commit comments

Comments
 (0)