summaryrefslogtreecommitdiff
path: root/src/queue/processors/system/resync-charts.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-13 12:23:49 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-13 12:23:49 +0900
commit2795fe457909c687f668d020ef65d52abc3182fb (patch)
tree0a52e4e4d854333496fcc487560c93c3de5d5eb5 /src/queue/processors/system/resync-charts.ts
parentMerge branch 'develop' (diff)
parent12.96.0 (diff)
downloadmisskey-2795fe457909c687f668d020ef65d52abc3182fb.tar.gz
misskey-2795fe457909c687f668d020ef65d52abc3182fb.tar.bz2
misskey-2795fe457909c687f668d020ef65d52abc3182fb.zip
Merge branch 'develop'
Diffstat (limited to 'src/queue/processors/system/resync-charts.ts')
-rw-r--r--src/queue/processors/system/resync-charts.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/queue/processors/system/resync-charts.ts b/src/queue/processors/system/resync-charts.ts
deleted file mode 100644
index b36b024cfb..0000000000
--- a/src/queue/processors/system/resync-charts.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import * as Bull from 'bull';
-
-import { queueLogger } from '../../logger';
-import { driveChart, notesChart, usersChart } from '@/services/chart/index';
-
-const logger = queueLogger.createSubLogger('resync-charts');
-
-export default async function resyncCharts(job: Bull.Job<{}>, done: any): Promise<void> {
- logger.info(`Resync charts...`);
-
- // TODO: ユーザーごとのチャートも更新する
- // TODO: インスタンスごとのチャートも更新する
- await Promise.all([
- driveChart.resync(),
- notesChart.resync(),
- usersChart.resync(),
- ]);
-
- logger.succ(`All charts successfully resynced.`);
- done();
-}