Fix file name

This commit is contained in:
syuilo 2019-02-06 21:10:37 +09:00
parent d25bd876cb
commit 0ed43e1bdf
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -100,7 +100,7 @@ export async function exportNotes(job: bq.Job, done: any): Promise<void> {
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}`);