summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ModerationLogService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core/ModerationLogService.ts')
-rw-r--r--packages/backend/src/core/ModerationLogService.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/backend/src/core/ModerationLogService.ts b/packages/backend/src/core/ModerationLogService.ts
index f7f9063d92..8b78d02047 100644
--- a/packages/backend/src/core/ModerationLogService.ts
+++ b/packages/backend/src/core/ModerationLogService.ts
@@ -24,8 +24,7 @@ export class ModerationLogService {
@bindThis
public async log<T extends typeof moderationLogTypes[number]>(moderator: { id: MiUser['id'] }, type: T, info?: ModerationLogPayloads[T]) {
await this.moderationLogsRepository.insert({
- id: this.idService.genId(),
- createdAt: new Date(),
+ id: this.idService.gen(),
userId: moderator.id,
type: type,
info: (info as any) ?? {},