Skip to content

Commit bfef016

Browse files
Update getSubmissionsDone() to use V5 API
1 parent 5386e83 commit bfef016

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/actions/challenge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ function getSubmissionsInit(challengeId) {
103103
* @desc Creates an action that loads user's submissions to the specified
104104
* challenge.
105105
* @param {String} challengeId Challenge ID.
106-
* @param {String} tokenV2 Topcoder auth token v2.
106+
* @param {String} tokenV23 Topcoder auth token v3.
107107
* @return {Action}
108108
*/
109-
function getSubmissionsDone(challengeId, tokenV2) {
110-
return getApi('V2', tokenV2)
111-
.fetch(`/challenges/submissions/${challengeId}/mySubmissions`)
109+
function getSubmissionsDone(challengeId, tokenV3) {
110+
return getApi('V5', tokenV3)
111+
.fetch(`/submissions?challengeId=${challengeId}`)
112112
.then(response => response.json())
113113
.then(response => ({
114114
challengeId: _.toString(challengeId),

0 commit comments

Comments
 (0)