Fix export saving

This commit is contained in:
Nicolas Mowen 2024-04-05 08:48:02 -06:00
parent 9bb1a415d4
commit 37850c0d8c
2 changed files with 14 additions and 8 deletions

View File

@ -64,10 +64,13 @@ export default function ExportDialog({
} }
axios axios
.post(`export/${camera}/start/${range.after}/end/${range.before}`, { .post(
playback: "realtime", `export/${camera}/start/${Math.round(range.after)}/end/${Math.round(range.before)}`,
name, {
}) playback: "realtime",
name,
},
)
.then((response) => { .then((response) => {
if (response.status == 200) { if (response.status == 200) {
toast.success( toast.success(

View File

@ -66,10 +66,13 @@ export default function MobileReviewSettingsDrawer({
} }
axios axios
.post(`export/${camera}/start/${range.after}/end/${range.before}`, { .post(
playback: "realtime", `export/${camera}/start/${Math.round(range.after)}/end/${Math.round(range.before)}`,
name, {
}) playback: "realtime",
name,
},
)
.then((response) => { .then((response) => {
if (response.status == 200) { if (response.status == 200) {
toast.success( toast.success(