Skip to content

Commit 88e8fb1

Browse files
committed
Clean up paths to match review API changes for path cleanup
1 parent 016c2a4 commit 88e8fb1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/apps/review/src/lib/hooks/useFetchChallengeSubmissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function useFetchChallengeSubmissions(
2929
}: SWRResponse<BackendSubmission[], Error> = useSWR<
3030
BackendSubmission[],
3131
Error
32-
>(`reviewBaseUrl/api/submissions/${challengeId}`, {
32+
>(`reviewBaseUrl/submissions/${challengeId}`, {
3333
fetcher: async () => {
3434
const results = await fetchSubmissions(1, 5000, challengeId ?? '')
3535
return results.data

src/apps/review/src/lib/services/reviews.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const fetchSubmissions = async (
135135
const results = await xhrGetAsync<
136136
BackendResponseWithMeta<BackendSubmission[]>
137137
>(
138-
`${EnvironmentConfig.REVIEW.REVIEW_API}/api/submissions?${qs.stringify({
138+
`${EnvironmentConfig.REVIEW.REVIEW_API}/submissions?${qs.stringify({
139139
challengeId,
140140
page,
141141
perPage,
@@ -157,7 +157,7 @@ export const downloadSubmissionFile = async (
157157
submissionId: string,
158158
): Promise<Blob> => {
159159
const results = await xhrGetBlobAsync<Blob>(
160-
`${EnvironmentConfig.REVIEW.REVIEW_API}/api/submissions/${submissionId}/download`,
160+
`${EnvironmentConfig.REVIEW.REVIEW_API}/submissions/${submissionId}/download`,
161161
)
162162
return results
163163
}

src/apps/review/src/lib/services/scorecards.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { EnvironmentConfig } from '~/config'
77
import { MockScorecard } from '../../mock-datas'
88
import { adjustScorecardInfo, Scorecard, ScorecardInfo } from '../models'
99

10-
const baseUrl = `${EnvironmentConfig.API.V6}/review/scorecards`
10+
const baseUrl = `${EnvironmentConfig.API.V6}/scorecards`
1111

1212
/**
1313
* Fetch scorecard

0 commit comments

Comments
 (0)