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

15 lines
338 B
TypeScript
Raw Normal View History

import define from '../../../define';
import { createCleanRemoteFilesJob } from '@/queue/index';
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,
};
2022-01-03 02:12:50 +09:00
// eslint-disable-next-line import/no-default-export
2019-05-27 16:54:47 +09:00
export default define(meta, async (ps, me) => {
createCleanRemoteFilesJob();
2019-05-27 16:54:47 +09:00
});