tango-app-api-payment-subscription 3.4.0-alpha.3 → 3.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -434,8 +434,11 @@ export async function invoiceDownload( req, res ) {
|
|
|
434
434
|
if ( getgroup.generateInvoiceTo.length == 0 ) {
|
|
435
435
|
return res.sendError( 'To Email not Found', 500 );
|
|
436
436
|
}
|
|
437
|
-
|
|
438
|
-
const
|
|
437
|
+
console.log( getgroup.generateInvoiceTo );
|
|
438
|
+
const SES = JSON.parse( process.env.SES );
|
|
439
|
+
let fromEmail = SES.adminEmail;
|
|
440
|
+
const result = await sendEmailWithSES( getgroup.generateInvoiceTo, mailSubject, mailbody, attachments, fromEmail );
|
|
441
|
+
console.log( result );
|
|
439
442
|
let logObj = {
|
|
440
443
|
userName: req.user?.userName,
|
|
441
444
|
email: req.user?.email,
|