b9cb6d1c10
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import define from '../../define.js';
|
|
import { createExportNotesJob } from '@/queue/index.js';
|
|
import * as ms from 'ms';
|
|
|
|
export const meta = {
|
|
secure: true,
|
|
requireCredential: true as const,
|
|
limit: {
|
|
duration: ms('1day'),
|
|
max: 1,
|
|
},
|
|
};
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
createExportNotesJob(user);
|
|
});
|