feature/IO-2769-Job-Totals-Testing - non-related
This commit is contained in:
@@ -6,7 +6,7 @@ const {
|
|||||||
GET_BODYSHOP_BY_MERCHANT_ID
|
GET_BODYSHOP_BY_MERCHANT_ID
|
||||||
} = require("../../graphql-client/queries");
|
} = require("../../graphql-client/queries");
|
||||||
|
|
||||||
const { sendServerEmail } = require("../../email/sendemail");
|
const { sendTaskEmail } = require("../../email/sendemail");
|
||||||
const getPaymentType = require("./getPaymentType");
|
const getPaymentType = require("./getPaymentType");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
|
|
||||||
@@ -47,7 +47,9 @@ const handleInvoiceBasedPayment = async (values, logger, logMeta, res) => {
|
|||||||
if (bodyshop?.bodyshops?.[0]) {
|
if (bodyshop?.bodyshops?.[0]) {
|
||||||
// Note: changed bodyshops to bodyshop to match query name
|
// Note: changed bodyshops to bodyshop to match query name
|
||||||
const email = bodyshop.bodyshops[0].email;
|
const email = bodyshop.bodyshops[0].email;
|
||||||
await sendServerEmail({
|
|
||||||
|
await sendTaskEmail({
|
||||||
|
to: email,
|
||||||
subject: `Failed to Insert Payment`,
|
subject: `Failed to Insert Payment`,
|
||||||
text: `The system has attempted to insert a payment that was generated by your merchant terminal but could not find an associated invoice. Transaction details are below. Please input this payment to your system manually.\n\n${Object.keys(
|
text: `The system has attempted to insert a payment that was generated by your merchant terminal but could not find an associated invoice. Transaction details are below. Please input this payment to your system manually.\n\n${Object.keys(
|
||||||
values
|
values
|
||||||
|
|||||||
Reference in New Issue
Block a user