diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 21:10:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 21:10:12 +0900 |
| commit | d25bd876cb0c9d84bde87abab22224410aa7cc4e (patch) | |
| tree | 7c1f16b6a14136802282aed5142ce2ad7eaebe80 /src/queue/processors/export-following.ts | |
| parent | Fix file ext (diff) | |
| download | sharkey-d25bd876cb0c9d84bde87abab22224410aa7cc4e.tar.gz sharkey-d25bd876cb0c9d84bde87abab22224410aa7cc4e.tar.bz2 sharkey-d25bd876cb0c9d84bde87abab22224410aa7cc4e.zip | |
Better file names
Diffstat (limited to 'src/queue/processors/export-following.ts')
| -rw-r--r-- | src/queue/processors/export-following.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/processors/export-following.ts b/src/queue/processors/export-following.ts index ed37781c0f..13ba0888f0 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<void> { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = dateFormat(new Date(), 'following-yyyy-mm-dd-HH-MM-ss') + '.csv'; + const fileName = 'following-' + dateFormat(new Date(), 'yyyy-mm-dd-HH-MM-ss') + '.csv'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`); |