diff options
| author | Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com> | 2024-10-20 16:51:43 +0200 |
|---|---|---|
| committer | Wolfboy248 <105884620+Wolfboy248@users.noreply.github.com> | 2024-10-20 16:51:43 +0200 |
| commit | 1c51ea2e373dcdd458d8cdc1d3b2225c316f346d (patch) | |
| tree | e8a667b3260ae6e79582e89070967b90552c6e73 /frontend/src/api | |
| parent | rankings: handle ties like iverb (diff) | |
| download | lphub-1c51ea2e373dcdd458d8cdc1d3b2225c316f346d.tar.gz lphub-1c51ea2e373dcdd458d8cdc1d3b2225c316f346d.tar.bz2 lphub-1c51ea2e373dcdd458d8cdc1d3b2225c316f346d.zip | |
refactor: touch ups
Diffstat (limited to 'frontend/src/api')
| -rw-r--r-- | frontend/src/api/Maps.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx index 8295cf2..b6a6bad 100644 --- a/frontend/src/api/Maps.tsx +++ b/frontend/src/api/Maps.tsx | |||
| @@ -75,7 +75,7 @@ export const delete_map_discussion = async (token: string, map_id: string, discu | |||
| 75 | return response.data.success; | 75 | return response.data.success; |
| 76 | }; | 76 | }; |
| 77 | 77 | ||
| 78 | export const post_record = async (token: string, run: UploadRunContent): Promise<[string]> => { | 78 | export const post_record = async (token: string, run: UploadRunContent): Promise<string> => { |
| 79 | if (run.partner_demo && run.partner_id) { | 79 | if (run.partner_demo && run.partner_id) { |
| 80 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { | 80 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { |
| 81 | "host_demo": run.host_demo, | 81 | "host_demo": run.host_demo, |