Use the same create logic for Mailer report creation

This commit is contained in:
Eli Ribble 2026-04-21 14:41:06 +00:00
parent f927b0a911
commit bd3e42f83e
No known key found for this signature in database
4 changed files with 13 additions and 24 deletions

View file

@ -59,12 +59,13 @@ async function doMounted() {
console.error("failed to find matching district", props.slug, districts);
return;
}
const report = await storePublicReport.create({
const report = await storePublicReport.createCompliance({
client_id: client_id,
district: district.uri,
});
storeLocal.setExistingComplianceReportURI(report.uri);
router.replace(`/compliance/${report.public_id}`);
console.log("Created new compliance report", report);
}
onMounted(() => {
doMounted();