From 3c85de3e34d0eb9ba35928b030a9bc6498111d0c Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 23 Sep 2024 15:04:51 -0700 Subject: [PATCH] IO-2945 Resolve no success being sent to intellipay creating triple posting. --- server/intellipay/intellipay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/intellipay/intellipay.js b/server/intellipay/intellipay.js index f798bc0bd..60319ed29 100644 --- a/server/intellipay/intellipay.js +++ b/server/intellipay/intellipay.js @@ -200,7 +200,7 @@ exports.postback = async (req, res) => { } })) }); - logger.log("intellipay-postback-app-success", "DEBUG", req.user?.email, null, { + logger.log("intellipay-postback-app-success", "DEBUG", req.user?.email, JSON.stringify(jobs), { iprequest: values, paymentResult }); @@ -223,8 +223,8 @@ exports.postback = async (req, res) => { .join("
") }) }); - res.sendStatus(200); } + res.sendStatus(200); } else if (values.invoice) { //This is a link email that's been sent out. const job = await gqlClient.request(queries.GET_JOB_BY_PK, { @@ -255,7 +255,7 @@ exports.postback = async (req, res) => { } }); - logger.log("intellipay-postback-link-success", "DEBUG", req.user?.email, null, { + logger.log("intellipay-postback-link-success", "DEBUG", req.user?.email, values.invoice, { iprequest: values, responseResults, paymentResult @@ -263,7 +263,7 @@ exports.postback = async (req, res) => { res.sendStatus(200); } } catch (error) { - logger.log("intellipay-postback-error", "ERROR", req.user?.email, null, { + logger.log("intellipay-postback-total-error", "ERROR", req.user?.email, null, { error: JSON.stringify(error), body: req.body });