Add concern page to mailer compliance flow
This commit is contained in:
parent
b5923137a7
commit
a8819c907e
11 changed files with 206 additions and 124 deletions
|
|
@ -172,18 +172,7 @@ async function updateReport(updates: ComplianceUpdate) {
|
|||
console.log("Refusing to update report without URI");
|
||||
return;
|
||||
}
|
||||
const resp = await fetch(report.value.uri, {
|
||||
method: "PUT",
|
||||
body: JSON.stringify(updates),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
if (!resp.ok) {
|
||||
const content = await resp.text();
|
||||
console.error("Failed to update compliance", resp.status, content);
|
||||
return;
|
||||
}
|
||||
storePublicReport.update(report.value.uri, updates);
|
||||
}
|
||||
async function updateLocation() {
|
||||
if (!report.value) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue