mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-29 04:43:09 +02:00
b9cb6d1c10
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
16 lines
328 B
TypeScript
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);
|
|
});
|