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
.post(`export/${camera}/start/${range.after}/end/${range.before}`, {
.post(
`export/${camera}/start/${Math.round(range.after)}/end/${Math.round(range.before)}`,
{
playback: "realtime",
name,
})
},
)
.then((response) => {
if (response.status == 200) {
toast.success(

View File

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