Merged in feature/IO-3522-Fortellis-Bug-Fix (pull request #2911)

IO-3522 Fortellis Null Coalesce for Owner data
This commit is contained in:
Allan Carr
2026-01-29 21:02:40 +00:00

View File

@@ -430,10 +430,10 @@ async function QueryDmsCustomerByName({ socket, redisHelpers, JobData }) {
const ownerName = const ownerName =
JobData.ownr_co_nm && JobData.ownr_co_nm.trim() !== "" JobData.ownr_co_nm && JobData.ownr_co_nm.trim() !== ""
//? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction. //? [["firstName", JobData.ownr_co_nm.replace(replaceSpecialRegex, "").toUpperCase()]] // Commented out until we receive direction.
? [["email", JobData.ownr_ea.toUpperCase()]] ? [["email", JobData.ownr_ea?.toUpperCase()]]
: [ : [
["firstName", JobData.ownr_fn.replace(replaceSpecialRegex, "").toUpperCase()], ["firstName", JobData.ownr_fn?.replace(replaceSpecialRegex, "").toUpperCase()],
["lastName", JobData.ownr_ln.replace(replaceSpecialRegex, "").toUpperCase()] ["lastName", JobData.ownr_ln?.replace(replaceSpecialRegex, "").toUpperCase()]
]; ];
try { try {
const result = await MakeFortellisCall({ const result = await MakeFortellisCall({