A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: fix backups not saving
Abdullah Attabbcf7d1206e8
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.jsindex ea4379489..952acd0e7 100644--- a/apps/web/src/common/index.js+++ b/apps/web/src/common/index.js@@ -101,7 +101,7 @@ export async function createBackup() {PATHS.backupsDirectory);const filePath = `${directory}/${filename}.${ext}`;- await desktop?.integration.saveFile.query(filePath, data);+ await desktop?.integration.saveFile.query({ filePath, data });showToast("success", `Backup saved at ${filePath}.`);} else {FileSaver.saveAs(new Blob([Buffer.from(data)]), `${filename}.${ext}`);