sharkey/src/server/api/endpoints/admin/queue/clear.ts

16 lines
273 B
TypeScript
Raw Normal View History

2019-02-06 15:24:59 +09: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();
}));