mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-27 13:08:05 +09:00
d2b5b67b44
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
22 lines
580 B
TypeScript
22 lines
580 B
TypeScript
import define from '../../define.js';
|
|
import { driveChart, notesChart, usersChart, instanceChart } from '@/services/chart/index.js';
|
|
import { insertModerationLog } from '@/services/insert-moderation-log.js';
|
|
|
|
export const meta = {
|
|
tags: ['admin'],
|
|
|
|
requireCredential: true as const,
|
|
requireModerator: true,
|
|
};
|
|
|
|
export default define(meta, async (ps, me) => {
|
|
insertModerationLog(me, 'chartResync');
|
|
|
|
driveChart.resync();
|
|
notesChart.resync();
|
|
usersChart.resync();
|
|
instanceChart.resync();
|
|
|
|
// TODO: ユーザーごとのチャートもキューに入れて更新する
|
|
});
|