More stuff to migrate

This commit is contained in:
2026-04-11 04:28:45 -04:00
parent 4860288d11
commit 7b72f815b0
3 changed files with 54 additions and 49 deletions

View File

@@ -52,19 +52,16 @@ export async function onRequestPost(context: RequestContext) {
context.request.headers.get("cf-ray")?.split("-")[0]
}${Date.now()}`;
await context.env.D1.prepare(
"INSERT INTO game_appeals (created_at, id, reason_for_unban, roblox_id, roblox_username, type, what_happened) VALUES (?, ?, ?, ?, ?, ?, ?);",
)
.bind(
Date.now(),
appealId,
reasonForUnban,
id,
username,
await context.data.prisma.gameAppeal.create({
data: {
id: appealId,
reason_for_unban: reasonForUnban,
roblox_id: id,
roblox_username: username,
type,
whatHappened,
)
.run();
what_happened: whatHappened,
},
});
await fetch(context.env.REPORTS_WEBHOOK, {
body: JSON.stringify({