Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the rest of it
  • Loading branch information
regalijan committed May 13, 2024
1 parent fe0a03a commit b46e54d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/GameAppealCard.tsx
Expand Up @@ -86,11 +86,11 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
<Stack divider={<StackDivider />}>
<Box>
<Heading size="xs">Response: Explanation of Ban</Heading>
<Text>{props.whatHappened}</Text>
<Text>{props.what_happened}</Text>
</Box>
<Box>
<Heading size="xs">Response: Reasoning for Unban</Heading>
<Text>{props.reasonForUnban}</Text>
<Text>{props.reason_for_unban}</Text>
</Box>
</Stack>
</CardBody>
Expand Down
1 change: 0 additions & 1 deletion functions/api/game-appeals/[id]/accept.ts
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion functions/api/game-appeals/[id]/deny.ts
Expand Up @@ -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}`,
Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit b46e54d

Please sign in to comment.