Make request to complete endpoint on finish

This commit is contained in:
regalijan 2023-10-19 16:49:44 -04:00
parent bdeb84d6bc
commit ac53ccbdb7
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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 (