Basic remote scrub.

This commit is contained in:
Patrick Fic
2026-01-12 14:26:30 -08:00
parent 1650a9b6f9
commit 8bf8d0bcac
4 changed files with 25 additions and 26 deletions

View File

@@ -15,8 +15,6 @@ exports.handler = async (event) => {
estimate.v_type = getVehicleType(estimate.v_model).type;
estimate.sendingEntityId = "87330f61-412b-4251-baaa-d026565b23c5";
console.log("Updated type", estimate.v_type);
const fileName = `${esApiKey}-${estimate.clm_no}-${Date.now()}`;
const formData = new FormData();
const jsonString = JSON.stringify(estimate);
@@ -46,7 +44,10 @@ exports.handler = async (event) => {
const reportIssueUrl = `https://insurtechtoolkit.com/pcontactUs.aspx?apiKey=${esApiKey}&file=${fileName}.json`;
return {
resultPDFUrl, reportIssueUrl
statusCode: 200,
body: JSON.stringify({
resultPDFUrl, reportIssueUrl, identified_item: result.data?.identified_item
}),
}
}
catch (error) {