Make request to complete endpoint on finish
This commit is contained in:
parent
bdeb84d6bc
commit
ac53ccbdb7
@ -170,6 +170,20 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
await fetch("/api/reports/complete", {
|
||||
body: JSON.stringify({ id }),
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
},
|
||||
method: "POST",
|
||||
});
|
||||
|
||||
useToast()({
|
||||
description: "User moderated",
|
||||
status: "success",
|
||||
title: "Success",
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user