From 393ea8239b4e916ae2286daf5ccfc6ff8a9349ed Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 24 Jun 2023 01:28:06 +0900 Subject: [PATCH] [fix] fixed save again --- src/ts/drive/drive.ts | 4 +- src/ts/storage/globalApi.ts | 1 + src/ts/storage/risuSave.ts | 73 ++++++++++++++++++++++++++++++++----- 3 files changed, 66 insertions(+), 12 deletions(-) diff --git a/src/ts/drive/drive.ts b/src/ts/drive/drive.ts index 88ce9f33..3b8cc015 100644 --- a/src/ts/drive/drive.ts +++ b/src/ts/drive/drive.ts @@ -245,7 +245,7 @@ async function backupDrive(ACCESS_TOKEN:string) { } } - const dbData = encodeRisuSave(get(DataBase)) + const dbData = encodeRisuSave(get(DataBase), 'compression') alertStore.set({ type: "wait", @@ -402,7 +402,7 @@ async function loadDrive(ACCESS_TOKEN:string, mode: 'backup'|'sync'):Promise