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

@@ -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({