File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ async function listSubmissions (authUser, query) {
266
266
// services. We can't do that here because it would introduce a circular dependency because the
267
267
// review service calls back to the submission service (this file)
268
268
// The check for submission.legacyId is for Phoenix submissions - we won't necessarily have the ID for those.
269
- if ( ! hasReviewInES && submission . id && submission . legacySubmissionId ) {
269
+ if ( ! hasReviewInES && submission . id && submission . legacySubmissionId && query . loadLegacy ) {
270
270
await informixHelper . loadOnlineReviewDetails ( authUser , submission )
271
271
}
272
272
@@ -298,6 +298,7 @@ const listSubmissionsQuerySchema = {
298
298
challengeId : joi . alternatives ( ) . try ( joi . id ( ) , joi . string ( ) . uuid ( ) ) ,
299
299
legacySubmissionId : joi . alternatives ( ) . try ( joi . id ( ) , joi . string ( ) . uuid ( ) ) ,
300
300
legacyUploadId : joi . alternatives ( ) . try ( joi . id ( ) , joi . string ( ) . uuid ( ) ) ,
301
+ loadLegacy : joi . boolean ( ) ,
301
302
submissionPhaseId : joi . id ( ) ,
302
303
page : joi . id ( ) ,
303
304
perPage : joi . pageSize ( ) ,
You can’t perform that action at this time.
0 commit comments