Sharkey/src/server/api/endpoints/i/export-mute.ts
syuilo b9cb6d1c10 refactor: refactoring imports
将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
2021-08-19 18:33:41 +09:00

16 lines
328 B
TypeScript

import define from '../../define.js';
import { createExportMuteJob } from '@/queue/index.js';
import * as ms from 'ms';
export const meta = {
secure: true,
requireCredential: true as const,
limit: {
duration: ms('1hour'),
max: 1,
},
};
export default define(meta, async (ps, user) => {
createExportMuteJob(user);
});