2021-08-19 12:55:45 +00:00
|
|
|
import define from '../../define';
|
|
|
|
import { Logs } from '@/models/index';
|
2019-05-23 05:11:42 +00:00
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
tags: ['admin'],
|
|
|
|
|
2020-02-15 12:33:32 +00:00
|
|
|
requireCredential: true as const,
|
2019-05-23 05:11:42 +00:00
|
|
|
requireModerator: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default define(meta, async (ps) => {
|
2021-03-23 06:22:31 +00:00
|
|
|
await Logs.clear(); // TRUNCATE
|
2019-05-23 05:11:42 +00:00
|
|
|
});
|