2019-09-01 22:41:26 +03:00
|
|
|
import define from '../../define';
|
|
|
|
import { driveChart, notesChart, usersChart, instanceChart } from '../../../../services/chart';
|
|
|
|
import { insertModerationLog } from '../../../../services/insert-moderation-log';
|
|
|
|
|
|
|
|
export const meta = {
|
2021-03-06 15:34:11 +02:00
|
|
|
desc: {
|
|
|
|
'ja-JP': 'チャートを再同期します。',
|
|
|
|
'en-US': 'Resync the chart.'
|
|
|
|
},
|
|
|
|
|
2019-09-01 22:41:26 +03:00
|
|
|
tags: ['admin'],
|
|
|
|
|
2020-02-15 14:33:32 +02:00
|
|
|
requireCredential: true as const,
|
2019-09-01 22:41:26 +03:00
|
|
|
requireModerator: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default define(meta, async (ps, me) => {
|
|
|
|
insertModerationLog(me, 'chartResync');
|
|
|
|
|
|
|
|
driveChart.resync();
|
|
|
|
notesChart.resync();
|
|
|
|
usersChart.resync();
|
|
|
|
instanceChart.resync();
|
|
|
|
|
|
|
|
// TODO: ユーザーごとのチャートもキューに入れて更新する
|
|
|
|
});
|