diff options
author | 2021-09-06 23:13:22 +0200 | |
---|---|---|
committer | 2021-09-06 23:13:22 +0200 | |
commit | 569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a (patch) | |
tree | 8d1cb94a56d60b9d726222277b7516fc59895613 /apps/Notes/helpers/export.js | |
parent | 275bd1d0a9aea90696c145cf992d522a0d6b0aa8 (diff) | |
download | my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.gz my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.bz2 my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.zip |
added stadard linter
Diffstat (limited to 'apps/Notes/helpers/export.js')
-rw-r--r-- | apps/Notes/helpers/export.js | 6 |
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')) }) } |