Add ES Auth Header & staging URLs.
This commit is contained in:
@@ -36,11 +36,12 @@ async function ScrubEstimate({ job }) {
|
||||
//No secret or private information is exposed.
|
||||
const basicAuthUser = "Imex2";
|
||||
const basicAuthpassword = "Patrick";
|
||||
const currentChannel = autoUpdater.channel
|
||||
const estimateScrubberUrl = process.env.NODE_ENV !== undefined || currentChannel === 'alpha' ? 'https://4284-79073.el-alt.com/api/sendems' : "https://insurtechtoolkit.com/api/sendems";
|
||||
console.log("*** ~ ScrubEstimate ~ process.env.NODE_ENV:", process.env.NODE_ENV);
|
||||
const currentChannel = autoUpdater.channel
|
||||
const estimateScrubberUrl = process.env.NODE_ENV === undefined || currentChannel === 'alpha' ? 'https://4284-79073.el-alt.com/api/sendems' : "https://insurtechtoolkit.com/api/sendems";
|
||||
log.debug(`Estimate Scrubber URL: [${currentChannel} |`, estimateScrubberUrl);
|
||||
const sendingEntityId = "87330f61-412b-4251-baaa-d026565b23c5";
|
||||
try { const esApiKey = job?.bodyshop?.es_api_key
|
||||
try {
|
||||
const esApiKey = job?.bodyshop?.es_api_key
|
||||
//Perform data manipulation on the job object
|
||||
if (!job) {
|
||||
console.error("No job provided to ScrubEstimate");
|
||||
|
||||
Reference in New Issue
Block a user