fix pdf + admin panel

This commit is contained in:
Emily
2024-09-10 16:59:34 +02:00
parent 5172ad4f4d
commit 4134d33dc4
7 changed files with 145 additions and 132 deletions

View File

@@ -71,7 +71,11 @@ async function generatePDF() {
try {
const res = await $fetch<Blob>('/api/project/generate_pdf', {
...signHeaders(),
...signHeaders({
'x-snapshot-name': snapshot.value.name,
'x-from': snapshot.value.from.toISOString(),
'x-to': snapshot.value.to.toISOString(),
}),
responseType: 'blob'
});