Skip to content

Commit 1c8f9f2

Browse files
Update getSubmissions to use UUID instead legacyId
1 parent d593f70 commit 1c8f9f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/services/challenges.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,15 @@ class ChallengesService {
350350
if (memberId) {
351351
isRegistered = _.some(registrants, r => r.memberId === memberId);
352352

353-
/**
354-
* TODO: Currenlty using legacyId until submissions_api fix issue with UUID
355-
*/
356353
const subParams = {
357-
challengeId: challenge.legacyId,
354+
challengeId,
358355
perPage: 100,
359356
};
360-
submissions = await this.private.submissionsService.getSubmissions(subParams);
357+
try {
358+
submissions = await this.private.submissionsService.getSubmissions(subParams);
359+
} catch (err) {
360+
submissions = [];
361+
}
361362

362363
if (submissions) {
363364
// Remove AV Scan, SonarQube Review and Virus Scan review types

0 commit comments

Comments
 (0)