Fix the rest of it
This commit is contained in:
@ -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();
|
||||
|
@ -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}`,
|
||||
|
Reference in New Issue
Block a user