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() )