From 90f7a93d46c66a1b7946a2c15b8d4347e0219468 Mon Sep 17 00:00:00 2001
From: Regalijan <r@regalijan.com>
Date: Mon, 13 May 2024 15:21:09 -0400
Subject: [PATCH] Actually fix game appeals this time

---
 functions/api/game-appeals/precheck.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions/api/game-appeals/precheck.ts b/functions/api/game-appeals/precheck.ts
index 35ef8e5..623a363 100644
--- a/functions/api/game-appeals/precheck.ts
+++ b/functions/api/game-appeals/precheck.ts
@@ -5,7 +5,7 @@ export default async function (
   user: number,
 ): Promise<{ can_appeal?: boolean; error?: string; reason?: string }> {
   if (
-    await context.env.D1.prepare("SELECT * FROM game_appeals WHERE user = ?;")
+    await context.env.D1.prepare("SELECT * FROM game_appeals WHERE roblox_id = ?;")
       .bind(user)
       .first()
   )