IO-3395 Postback Payment Date

Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
Allan Carr
2025-10-07 10:59:10 -07:00
parent bdd5056c9a
commit f19b9cb8e1
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ const handleCommentBasedPayment = async (values, decodedComment, logger, logMeta
type: getPaymentType(ipMapping, values.cardtype),
jobid: p.jobid,
date: moment()
.tz(bodyshop.bodyshops_by_pk.timezone || "UTC")
.tz(bodyshop?.bodyshops_by_pk?.timezone ?? "UTC")
.format("YYYY-MM-DD"),
payment_responses: {
data: {

View File

@@ -98,7 +98,7 @@ const handleInvoiceBasedPayment = async (values, logger, logMeta, res) => {
type: getPaymentType(ipMapping, values.cardtype),
jobid: job.id,
date: moment()
.tz(bodyshop.timezone || "UTC")
.tz(bodyshop?.timezone ?? "UTC")
.format("YYYY-MM-DD")
}
});