Skip to content

Commit

Permalink
Export dump under .json.gz format instead of .gzip
Browse files Browse the repository at this point in the history
This allows to decompress the dump as json, instead of it having no extension
  • Loading branch information
nas-tabchiche committed Sep 10, 2024
1 parent 4ff293b commit 2094c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/backup-restore/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { page } from '$app/stores';
import * as m from '$paraglide/messages';
const authorizedExtensions = ['.json', '.gzip'];
const authorizedExtensions = ['.json', '.gz'];
import { getModalStore, type ModalSettings } from '@skeletonlabs/skeleton';
const modalStore = getModalStore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const GET: RequestHandler = async ({ fetch }) => {
error(400, 'Error fetching the dump file');
}

const fileName = `ciso-assistant-db-${new Date().toISOString()}.gzip`;
const fileName = `ciso-assistant-db-${new Date().toISOString()}.json.gz`;

return new Response(await res.blob(), {
headers: {
Expand Down

0 comments on commit 2094c0f

Please sign in to comment.