From 0180976629b94532a3c2bd0cbe2e5cc57746e5e1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 6 Feb 2019 21:10:37 +0900 Subject: [PATCH] Fix file name --- src/queue/processors/export-notes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue/processors/export-notes.ts b/src/queue/processors/export-notes.ts index 8b84b0272..4d973d015 100644 --- a/src/queue/processors/export-notes.ts +++ b/src/queue/processors/export-notes.ts @@ -100,7 +100,7 @@ export async function exportNotes(job: bq.Job, done: any): Promise { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = 'notes' + dateFormat(new Date(), 'yyyy-mm-dd-HH-MM-ss') + '.json'; + const fileName = 'notes-' + dateFormat(new Date(), 'yyyy-mm-dd-HH-MM-ss') + '.json'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`);