From b9782397c2ec3688ff649ff10f2c682c7de33ea1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 6 Feb 2019 21:07:36 +0900 Subject: [PATCH] Fix file ext --- src/queue/processors/export-blocking.ts | 2 +- src/queue/processors/export-following.ts | 2 +- src/queue/processors/export-mute.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/queue/processors/export-blocking.ts b/src/queue/processors/export-blocking.ts index 849ba090b2..841fd2c3da 100644 --- a/src/queue/processors/export-blocking.ts +++ b/src/queue/processors/export-blocking.ts @@ -80,7 +80,7 @@ export async function exportBlocking(job: bq.Job, done: any): Promise { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = dateFormat(new Date(), 'blocking-yyyy-mm-dd-HH-MM-ss') + '.json'; + const fileName = dateFormat(new Date(), 'blocking-yyyy-mm-dd-HH-MM-ss') + '.csv'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`); diff --git a/src/queue/processors/export-following.ts b/src/queue/processors/export-following.ts index 7107df24e8..ed37781c0f 100644 --- a/src/queue/processors/export-following.ts +++ b/src/queue/processors/export-following.ts @@ -80,7 +80,7 @@ export async function exportFollowing(job: bq.Job, done: any): Promise { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = dateFormat(new Date(), 'following-yyyy-mm-dd-HH-MM-ss') + '.json'; + const fileName = dateFormat(new Date(), 'following-yyyy-mm-dd-HH-MM-ss') + '.csv'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`); diff --git a/src/queue/processors/export-mute.ts b/src/queue/processors/export-mute.ts index 5c5d6e46ae..efe4af6c38 100644 --- a/src/queue/processors/export-mute.ts +++ b/src/queue/processors/export-mute.ts @@ -80,7 +80,7 @@ export async function exportMute(job: bq.Job, done: any): Promise { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = dateFormat(new Date(), 'mute-yyyy-mm-dd-HH-MM-ss') + '.json'; + const fileName = dateFormat(new Date(), 'mute-yyyy-mm-dd-HH-MM-ss') + '.csv'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`);