2019-02-06 05:56:48 -06:00
|
|
|
import define from '../../define';
|
|
|
|
import { createExportBlockingJob } from '../../../../queue';
|
|
|
|
import ms = require('ms');
|
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
secure: true,
|
|
|
|
requireCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2019-02-21 20:46:58 -06:00
|
|
|
export default define(meta, async (ps, user) => {
|
2019-02-06 05:56:48 -06:00
|
|
|
createExportBlockingJob(user);
|
2019-02-21 20:46:58 -06:00
|
|
|
});
|