Skip to content

Commit 6be540c

Browse files
Fix issue where after v5 migration, search query would not return any results
1 parent 984962b commit 6be540c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/SubmissionService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ function * downloadSubmission (authUser, submissionId) {
183183
*/
184184
function * listSubmissions (authUser, query) {
185185
if (query.challengeId) {
186-
// Submission api only works with legacy challenge id
187-
// If it is a v5 challenge id, get the associated legacy challenge id
188-
query.challengeId = yield helper.getLegacyChallengeId(query.challengeId)
186+
// Submission api now only works with v5 challenge id
187+
// If it is a legacy challenge id, get the associated v5 challenge id
188+
query.challengeId = yield helper.getV5ChallengeId(query.challengeId)
189189
}
190190

191191
const data = yield helper.fetchFromES(query, helper.camelize(table))

0 commit comments

Comments
 (0)