More events team nonsense
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
export async function onRequestDelete(context: RequestContext) {
|
||||
await context.env.D1.prepare("DELETE FROM et_strikes WHERE id = ?;")
|
||||
.bind(context.params.id)
|
||||
.run();
|
||||
await context.data.prisma.etStrike.delete({
|
||||
where: {
|
||||
id: context.params.id as string,
|
||||
},
|
||||
});
|
||||
|
||||
return new Response(null, {
|
||||
status: 204,
|
||||
|
||||
Reference in New Issue
Block a user