paricafe/src/server/api/endpoints/admin/queue/clear.ts
2019-07-14 03:18:45 +09:00

18 lines
386 B
TypeScript

import define from '../../../define';
import { destroy } from '../../../../../queue';
import { insertModerationLog } from '../../../../../services/insert-moderation-log';
export const meta = {
tags: ['admin'],
requireCredential: true,
requireModerator: true,
params: {}
};
export default define(meta, async (ps, me) => {
destroy();
insertModerationLog(me, 'clearQueue');
});