Close actioned reports
This commit is contained in:
parent
31bbdd8c1a
commit
d0680884d8
@ -72,6 +72,12 @@ export async function onRequestPost(context: RequestContext) {
|
||||
Object.assign(banList, newActions);
|
||||
await setBanList(context, banList);
|
||||
|
||||
reportData.open = false;
|
||||
await context.env.DATA.put(`report_${reportId}`, JSON.stringify(reportData));
|
||||
await context.env.D1.prepare("UPDATE reports SET open = 0 WHERE id = ?;")
|
||||
.bind(reportId)
|
||||
.run();
|
||||
|
||||
return new Response(null, {
|
||||
status: 204,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user