aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Notes/helpers/export.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Notes/helpers/export.js')
-rw-r--r--apps/Notes/helpers/export.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/Notes/helpers/export.js b/apps/Notes/helpers/export.js
index 4a0db9c..cdb6ae3 100644
--- a/apps/Notes/helpers/export.js
+++ b/apps/Notes/helpers/export.js
@@ -23,10 +23,10 @@ export const handleExport = (e, ids, notes) => {
Promise.all(ids.map(async id => {
const title = notes.find(n => n.noteId === id).title
- const {content} = await fetchJson(`/api/notes/${id}`)
- zip.folder('notes').file(filename(title), content, {binary: true})
+ const { content } = await fetchJson(`/api/notes/${id}`)
+ zip.folder('notes').file(filename(title), content, { binary: true })
})).then(() => {
- zip.generateAsync({type:"blob"})
+ zip.generateAsync({ type: 'blob' })
.then(c => saveFile(c, 'notes.zip', 'application/zip'))
})
}