1
0
forked from mirror/misskey

Better file names

This commit is contained in:
syuilo 2019-02-06 21:10:12 +09:00
parent b9782397c2
commit d25bd876cb
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
4 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ export async function exportBlocking(job: bq.Job, done: any): Promise<void> {
stream.end(); stream.end();
logger.succ(`Exported to: ${path}`); 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); const driveFile = await addFile(user, path, fileName);
logger.succ(`Exported to: ${driveFile._id}`); logger.succ(`Exported to: ${driveFile._id}`);

View File

@ -80,7 +80,7 @@ export async function exportFollowing(job: bq.Job, done: any): Promise<void> {
stream.end(); stream.end();
logger.succ(`Exported to: ${path}`); 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); const driveFile = await addFile(user, path, fileName);
logger.succ(`Exported to: ${driveFile._id}`); logger.succ(`Exported to: ${driveFile._id}`);

View File

@ -80,7 +80,7 @@ export async function exportMute(job: bq.Job, done: any): Promise<void> {
stream.end(); stream.end();
logger.succ(`Exported to: ${path}`); logger.succ(`Exported to: ${path}`);
const fileName = dateFormat(new Date(), 'mute-yyyy-mm-dd-HH-MM-ss') + '.csv'; const fileName = 'mute-' + dateFormat(new Date(), 'yyyy-mm-dd-HH-MM-ss') + '.csv';
const driveFile = await addFile(user, path, fileName); const driveFile = await addFile(user, path, fileName);
logger.succ(`Exported to: ${driveFile._id}`); logger.succ(`Exported to: ${driveFile._id}`);

View File

@ -100,7 +100,7 @@ export async function exportNotes(job: bq.Job, done: any): Promise<void> {
stream.end(); stream.end();
logger.succ(`Exported to: ${path}`); logger.succ(`Exported to: ${path}`);
const fileName = 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); const driveFile = await addFile(user, path, fileName);
logger.succ(`Exported to: ${driveFile._id}`); logger.succ(`Exported to: ${driveFile._id}`);