mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-29 05:58:04 +09:00
c05e7a6321
* wip * Add test * Fix test * Insert moderation log * Add todo
22 lines
576 B
TypeScript
22 lines
576 B
TypeScript
import define from '../../define';
|
|
import { driveChart, notesChart, usersChart, instanceChart } from '../../../../services/chart';
|
|
import { insertModerationLog } from '../../../../services/insert-moderation-log';
|
|
|
|
export const meta = {
|
|
tags: ['admin'],
|
|
|
|
requireCredential: true,
|
|
requireModerator: true,
|
|
};
|
|
|
|
export default define(meta, async (ps, me) => {
|
|
insertModerationLog(me, 'chartResync');
|
|
|
|
driveChart.resync();
|
|
notesChart.resync();
|
|
usersChart.resync();
|
|
instanceChart.resync();
|
|
|
|
// TODO: ユーザーごとのチャートもキューに入れて更新する
|
|
});
|