Set approved field on appeal action
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user