Even more migrations

This commit is contained in:
2026-04-11 04:29:04 -04:00
parent 7b72f815b0
commit 1a891e5898
2 changed files with 28 additions and 28 deletions

View File

@@ -18,18 +18,15 @@ export async function onRequestPost(context: RequestContext) {
if (isNaN(parseInt(user))) return jsonError("Invalid user ID", 400);
await context.env.D1.prepare(
"INSERT INTO game_mod_logs (action, evidence, executed_at, executor, id, target) VALUES (?, ?, ?, ?, ?, ?);",
)
.bind(
"revoke",
ticket_link,
Date.now(),
context.data.current_user.id,
crypto.randomUUID(),
parseInt(user),
)
.run();
await context.data.prisma.gameModLog.create({
data: {
action: "revoke",
evidence: ticket_link,
executor: context.data.current_user.id,
id: crypto.randomUUID(),
target: parseInt(user),
},
});
const { etag, value: banList } = await getBanList(context);