diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 00:56:51 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 00:56:51 +0300 |
| commit | c619cda228b116b3c7be43e2654f7297896f9199 (patch) | |
| tree | 23ddddf968d44f841aabc55f47a9e3f6802edb22 /frontend/src/api | |
| parent | backend: no need for partner_id for record submission (diff) | |
| download | lphub-c619cda228b116b3c7be43e2654f7297896f9199.tar.gz lphub-c619cda228b116b3c7be43e2654f7297896f9199.tar.bz2 lphub-c619cda228b116b3c7be43e2654f7297896f9199.zip | |
frontend: try smth
Diffstat (limited to 'frontend/src/api')
| -rw-r--r-- | frontend/src/api/Maps.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx index b6a6bad..2209788 100644 --- a/frontend/src/api/Maps.tsx +++ b/frontend/src/api/Maps.tsx | |||
| @@ -76,11 +76,10 @@ export const delete_map_discussion = async (token: string, map_id: string, discu | |||
| 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) { |
| 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, |
| 82 | "partner_demo": run.partner_demo, | 82 | "partner_demo": run.partner_demo, |
| 83 | "partner_id": run.partner_id, | ||
| 84 | }, { | 83 | }, { |
| 85 | headers: { | 84 | headers: { |
| 86 | "Authorization": token, | 85 | "Authorization": token, |