diff --git a/components/GameAppealCard.tsx b/components/GameAppealCard.tsx index 33d4a98..f412c12 100644 --- a/components/GameAppealCard.tsx +++ b/components/GameAppealCard.tsx @@ -86,11 +86,11 @@ export default function (props: GameAppealProps & { port?: MessagePort }) { }> Response: Explanation of Ban - {props.whatHappened} + {props.what_happened} Response: Reasoning for Unban - {props.reasonForUnban} + {props.reason_for_unban} diff --git a/functions/api/game-appeals/[id]/accept.ts b/functions/api/game-appeals/[id]/accept.ts index 76eb95b..8523811 100644 --- a/functions/api/game-appeals/[id]/accept.ts +++ b/functions/api/game-appeals/[id]/accept.ts @@ -19,7 +19,6 @@ export async function onRequestPost(context: RequestContext) { [k: string]: { BanType: number; Unbanned?: boolean; UnbanReduct?: number }; }; - await context.env.DATA.delete(`gameappeal_${context.params.id as string}`); await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;") .bind(context.params.id) .run(); diff --git a/functions/api/game-appeals/[id]/deny.ts b/functions/api/game-appeals/[id]/deny.ts index 7407d77..d483a0c 100644 --- a/functions/api/game-appeals/[id]/deny.ts +++ b/functions/api/game-appeals/[id]/deny.ts @@ -11,10 +11,10 @@ export async function onRequestPost(context: RequestContext) { if (!appeal) return jsonError("Appeal not found", 404); - await context.env.DATA.delete(`gameappeal_${appealId}`); await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;") .bind(appealId) .run(); + await context.env.DATA.put( `gameappealblock_${appeal.roblox_id}`, `${Date.now() + 2592000000}`, diff --git a/index.d.ts b/index.d.ts index dd98716..900faa8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -36,10 +36,10 @@ declare global { interface GameAppealProps { created_at: number; id: string; - reasonForUnban: string; + reason_for_unban: string; roblox_id: number; roblox_username: string; - whatHappened: string; + what_happened: string; } interface InactivityNoticeProps {