sharkey/src/server/api/endpoints/admin/drive/clean-remote-files.ts

14 lines
292 B
TypeScript
Raw Normal View History

2019-05-27 16:54:47 +09:00
import define from '../../../define';
import { createCleanRemoteFilesJob } from '../../../../../queue';
2019-05-27 16:54:47 +09:00
export const meta = {
tags: ['admin'],
2020-02-15 21:33:32 +09:00
requireCredential: true as const,
2019-05-27 16:54:47 +09:00
requireModerator: true,
};
export default define(meta, async (ps, me) => {
createCleanRemoteFilesJob();
2019-05-27 16:54:47 +09:00
});