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-blocking.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-blocking.ts')
| -rw-r--r-- | src/queue/processors/export-blocking.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/processors/export-blocking.ts b/src/queue/processors/export-blocking.ts index 841fd2c3da..95465a5e51 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<void> { stream.end(); logger.succ(`Exported to: ${path}`); - const fileName = dateFormat(new Date(), 'blocking-yyyy-mm-dd-HH-MM-ss') + '.csv'; + const fileName = 'blocking-' + dateFormat(new Date(), 'yyyy-mm-dd-HH-MM-ss') + '.csv'; const driveFile = await addFile(user, path, fileName); logger.succ(`Exported to: ${driveFile._id}`); |