Fix the rest of it
This commit is contained in:
parent
fe0a03a4a9
commit
b46e54d0c3
@ -86,11 +86,11 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
|
|||||||
<Stack divider={<StackDivider />}>
|
<Stack divider={<StackDivider />}>
|
||||||
<Box>
|
<Box>
|
||||||
<Heading size="xs">Response: Explanation of Ban</Heading>
|
<Heading size="xs">Response: Explanation of Ban</Heading>
|
||||||
<Text>{props.whatHappened}</Text>
|
<Text>{props.what_happened}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Heading size="xs">Response: Reasoning for Unban</Heading>
|
<Heading size="xs">Response: Reasoning for Unban</Heading>
|
||||||
<Text>{props.reasonForUnban}</Text>
|
<Text>{props.reason_for_unban}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
|
@ -19,7 +19,6 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
[k: string]: { BanType: number; Unbanned?: boolean; UnbanReduct?: number };
|
[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 = ?;")
|
await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;")
|
||||||
.bind(context.params.id)
|
.bind(context.params.id)
|
||||||
.run();
|
.run();
|
||||||
|
@ -11,10 +11,10 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
|
|
||||||
if (!appeal) return jsonError("Appeal not found", 404);
|
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 = ?;")
|
await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;")
|
||||||
.bind(appealId)
|
.bind(appealId)
|
||||||
.run();
|
.run();
|
||||||
|
|
||||||
await context.env.DATA.put(
|
await context.env.DATA.put(
|
||||||
`gameappealblock_${appeal.roblox_id}`,
|
`gameappealblock_${appeal.roblox_id}`,
|
||||||
`${Date.now() + 2592000000}`,
|
`${Date.now() + 2592000000}`,
|
||||||
|
4
index.d.ts
vendored
4
index.d.ts
vendored
@ -36,10 +36,10 @@ declare global {
|
|||||||
interface GameAppealProps {
|
interface GameAppealProps {
|
||||||
created_at: number;
|
created_at: number;
|
||||||
id: string;
|
id: string;
|
||||||
reasonForUnban: string;
|
reason_for_unban: string;
|
||||||
roblox_id: number;
|
roblox_id: number;
|
||||||
roblox_username: string;
|
roblox_username: string;
|
||||||
whatHappened: string;
|
what_happened: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InactivityNoticeProps {
|
interface InactivityNoticeProps {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user