Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { ModerationLogs } from "../models/index.js";
|
||||
import { genId } from "../misc/gen-id.js";
|
||||
export async function insertModerationLog(moderator, type, info) {
|
||||
await ModerationLogs.insert({
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
userId: moderator.id,
|
||||
type: type,
|
||||
info: info || {}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user