fix: store username on moderation_actions for retention safety
Add denormalized column to moderation_actions so the dashboard TARGET field survives message table purges. Backfills all existing 217 rows. Changes: schema + autoDeleteManager + backend repository query + migration 0017.
This commit is contained in:
@@ -103,6 +103,7 @@ export class ModerationHandler {
|
||||
| "kick_user"
|
||||
| "ban_user",
|
||||
reason: payload.reason ?? null,
|
||||
username: null,
|
||||
executed_by: payload.executed_by ?? "command-handler",
|
||||
status: "executed",
|
||||
error: null,
|
||||
|
||||
Reference in New Issue
Block a user