More stuff to migrate
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user