fix snapshots

This commit is contained in:
Emily
2024-11-01 15:47:43 +01:00
parent 36c4406af2
commit f86a399840
7 changed files with 20 additions and 37 deletions

View File

@@ -42,7 +42,7 @@ const { createAlert } = useAlert()
async function confirmSnapshot() {
await $fetch("/api/snapshot/create", {
method: 'POST',
...signHeaders({ 'Content-Type': 'application/json' }),
headers: useComputedHeaders({ useSnapshotDates: false }).value,
body: JSON.stringify({
name: snapshotName.value,
color: currentColor.value,