0e4a111f81
Resolve #7779
14 lines
261 B
TypeScript
14 lines
261 B
TypeScript
import define from '../../define';
|
|
import { Logs } from '@/models/index';
|
|
|
|
export const meta = {
|
|
tags: ['admin'],
|
|
|
|
requireCredential: true as const,
|
|
requireModerator: true,
|
|
};
|
|
|
|
export default define(meta, async (ps) => {
|
|
await Logs.clear(); // TRUNCATE
|
|
});
|