Basic remote scrub.
This commit is contained in:
@@ -158,14 +158,16 @@ async function ImportJob(filepath: string): Promise<void> {
|
||||
|
||||
//Scrub the estimate
|
||||
const scrubResults = await ScrubEstimate({ job: jobObject });
|
||||
console.log("Scrub Results:", scrubResults);
|
||||
// UploadEmsToS3({
|
||||
// extensionlessFilePath,
|
||||
// bodyshopid: newAvailableJob.bodyshopid,
|
||||
// ciecaid: jobObject.ciecaid ?? "",
|
||||
// clm_no: jobObject.clm_no ?? "",
|
||||
// ownr_ln: jobObject.ownr_ln ?? "",
|
||||
// });
|
||||
|
||||
const esApiKey = store.get("settings.esApiKey") as string;
|
||||
UploadEmsToS3({
|
||||
extensionlessFilePath,
|
||||
esApiKey: esApiKey,
|
||||
ciecaid: jobObject.ciecaid ?? "",
|
||||
clm_no: jobObject.clm_no ?? "",
|
||||
ownr_ln: jobObject.ownr_ln ?? "",
|
||||
});
|
||||
console.log("Got past the job upload.");
|
||||
} catch (error) {
|
||||
log.error("Error encountered while decoding job. ", errorTypeCheck(error));
|
||||
const uploadNotificationFailure = new Notification({
|
||||
|
||||
Reference in New Issue
Block a user