From 0ed43e1bdf58742c0285ed011b1c847842812009 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 8b84b02722..4d973d015c 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}`);