From 098ef543fa5200031f1e93c5b338c8e0633bd1a2 Mon Sep 17 00:00:00 2001 From: Max Edell Date: Fri, 29 May 2026 09:04:19 -0700 Subject: [PATCH] fix: log xml to ops-log --- src/actions/ebs-sync/ebs.js | 6 +++--- src/actions/ebs-sync/sync.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actions/ebs-sync/ebs.js b/src/actions/ebs-sync/ebs.js index 0100a7c..9cd428d 100644 --- a/src/actions/ebs-sync/ebs.js +++ b/src/actions/ebs-sync/ebs.js @@ -120,7 +120,7 @@ export async function syncOrderToEbs(ctx, params, order, orderJournal) { throw err; } - return { status: res.status }; + return { status: res.status, xml }; } /** Returns true when the EBS response indicates success. */ @@ -461,8 +461,8 @@ function buildPaymentXml(paymentSnapshot, order) { : ''; const safetechAttrs = paymentSnapshot.hasSafetech ? `\n FraudStatusCode="${escapeXml(paymentSnapshot.fraudStatusCode)}"` - + `\n FraudRiskInquiryTransactionID="${escapeXml(paymentSnapshot.fraudRiskInquiryTransactionId)}"` - + `\n FraudAutoDecisionResponse="${escapeXml(paymentSnapshot.fraudAutoDecisionResponse)}"` + + `\n FraudRiskInquiryTransactionID="${escapeXml(paymentSnapshot.fraudRiskInquiryTransactionId)}"` + + `\n FraudAutoDecisionResponse="${escapeXml(paymentSnapshot.fraudAutoDecisionResponse)}"` : ''; inner = ` { + await logOrderSync(params, { action: 'order-sync', id: orderId, status, xml }).catch((logErr) => { log.warn(`[ebs-sync] Failed to log order-sync for ${orderId}: ${logErr.message}`); });