Basic remote scrub.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user