Drop game appeals from table on closure
This commit is contained in:
@ -20,6 +20,9 @@ export async function onRequestPost(context: RequestContext) {
|
||||
};
|
||||
|
||||
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();
|
||||
|
||||
if (!banList[data.roblox_id])
|
||||
return new Response(null, {
|
||||
|
@ -10,6 +10,9 @@ export async function onRequestPost(context: RequestContext) {
|
||||
const appealData = JSON.parse(appeal);
|
||||
|
||||
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_${appealData.roblox_id}`,
|
||||
`${Date.now() + 2592000000}`,
|
||||
|
Reference in New Issue
Block a user