Skip to content

Commit a44480e

Browse files
committed
Fix API endpoints in getScoreLeaderboard and getPopularVoteLeaderboard by removing 'admin' from the URL path.
1 parent 5666396 commit a44480e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commons/sagas/RequestsSaga.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ export const dispatchContestXp = async (
13361336
};
13371337

13381338
/**
1339-
* GET /courses/{courseId}/admin/assessments/{assessmentId}/scoreLeaderboard
1339+
* GET /courses/{courseId}/assessments/{assessmentId}/scoreLeaderboard
13401340
*/
13411341
export const getScoreLeaderboard = async (
13421342
assessmentId: number,
@@ -1345,7 +1345,7 @@ export const getScoreLeaderboard = async (
13451345
): Promise<ContestEntry[] | null> => {
13461346
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
13471347
const resp = await request(
1348-
`${courseId()}/admin/assessments/${assessmentId}/scoreLeaderboard?${params.toString()}`,
1348+
`${courseId()}/assessments/${assessmentId}/scoreLeaderboard?${params.toString()}`,
13491349
'GET',
13501350
{
13511351
...tokens
@@ -1368,7 +1368,7 @@ export const getScoreLeaderboard = async (
13681368
};
13691369

13701370
/**
1371-
* GET /courses/{courseId}/admin/assessments/{assessmentId}/popularVoteLeaderboard
1371+
* GET /courses/{courseId}/assessments/{assessmentId}/popularVoteLeaderboard
13721372
*/
13731373
export const getPopularVoteLeaderboard = async (
13741374
assessmentId: number,
@@ -1377,7 +1377,7 @@ export const getPopularVoteLeaderboard = async (
13771377
): Promise<ContestEntry[] | null> => {
13781378
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
13791379
const resp = await request(
1380-
`${courseId()}/admin/assessments/${assessmentId}/popularVoteLeaderboard?${params.toString()}`,
1380+
`${courseId()}/assessments/${assessmentId}/popularVoteLeaderboard?${params.toString()}`,
13811381
'GET',
13821382
{
13831383
...tokens

0 commit comments

Comments
 (0)