Permalink
Newer
100644
27 lines (21 sloc)
660 Bytes
3
export async function onRequestPost(context: RequestContext) {
4
const appealId = context.params.id as string;
5
6
const appeal = await context.env.D1.prepare(
7
"SELECT * FROM game_appeals WHERE id = ?;",
8
)
9
.bind(appealId)
10
.first();
14
await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;")
15
.bind(appealId)
16
.run();