Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Normal-OJ/new-front-end
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7c2af64cb7143b1b7bb5bb481d96ed53b2afd6f9
Choose a base ref
..
head repository: Normal-OJ/new-front-end
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6f863b923133bb7767c0ae5bb51e0285c27ed0fa
Choose a head ref
Showing with 10 additions and 3 deletions.
  1. +10 −3 src/models/api.ts
13 changes: 10 additions & 3 deletions src/models/api.ts
Original file line number Diff line number Diff line change
@@ -49,9 +49,16 @@ const Problem = {
length: number;
partSize: number;
},
) => fetcher.post<{ upload_id: string; urls: string[] }>(`/problem/${problemId}/initiate-test-case-upload`, body),
completeTestCaseUpload: (problemId: number, uploadId: string, parts: any[]) =>
fetcher.post(`/problem/${problemId}/complete-test-case-upload`, { uploadId, parts }),
) =>
fetcher.post<{ upload_id: string; urls: string[] }>(
`/problem/${problemId}/initiate-test-case-upload`,
body,
),
completeTestCaseUpload: (
problemId: number,
uploadId: string,
parts: { ETag: string; PartNumber: number }[],
) => fetcher.post(`/problem/${problemId}/complete-test-case-upload`, { uploadId, parts }),
};

const Submission = {