yumechi-no-kuni/src/server/api/endpoints/admin/queue/clear.ts

16 lines
273 B
TypeScript
Raw Normal View History

2019-02-06 00:24:59 -06:00
import define from '../../../define';
import { destroy } from '../../../../../queue';
export const meta = {
requireCredential: true,
requireModerator: true,
params: {}
};
export default define(meta, (ps) => new Promise(async (res, rej) => {
destroy();
res();
}));