Use the same create logic for Mailer report creation
This commit is contained in:
parent
f927b0a911
commit
bd3e42f83e
4 changed files with 13 additions and 24 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue