Drop game appeals from table on closure

This commit is contained in:
2023-10-29 04:31:24 -04:00
parent 1197564fb8
commit 0e76704d98
2 changed files with 6 additions and 0 deletions

View File

@ -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, {