aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/api/Maps.tsx
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 12:41:44 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 12:41:44 +0300
commitc5154b2203342280a0cf75bb5f25311e6112400e (patch)
tree3e1a97517dbb19d4ca3ad04dfb36cf4871de40d0 /frontend/src/api/Maps.tsx
parentfrontend: upload run dimmer zindex increase (diff)
downloadlphub-c5154b2203342280a0cf75bb5f25311e6112400e.tar.gz
lphub-c5154b2203342280a0cf75bb5f25311e6112400e.tar.bz2
lphub-c5154b2203342280a0cf75bb5f25311e6112400e.zip
frontend: update profile after upload run
Diffstat (limited to 'frontend/src/api/Maps.tsx')
-rw-r--r--frontend/src/api/Maps.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx
index 2209788..e57fc45 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
78export const post_record = async (token: string, run: UploadRunContent): Promise<string> => { 78export const post_record = async (token: string, run: UploadRunContent): Promise<[boolean, string]> => {
79 if (run.partner_demo) { 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,
@@ -94,7 +94,7 @@ export const post_record = async (token: string, run: UploadRunContent): Promise
94 "Authorization": token, 94 "Authorization": token,
95 } 95 }
96 }); 96 });
97 return response.data.message; 97 return [ response.data.success, response.data.message ];
98 } 98 }
99} 99}
100 100