Set approved field on appeal action

This commit is contained in:
2023-10-19 16:51:15 -04:00
parent 33f90300ca
commit 1a35cca6cf
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export async function onRequestPost(context: RequestContext) {
const { current_user: currentUser } = context.data;
await context.env.D1.prepare("UPDATE appeals SET open = 0 WHERE id = ?;")
await context.env.D1.prepare("UPDATE appeals SET approved = 1, open = 0 WHERE id = ?;")
.bind(context.params.id)
.run();