tango-app-api-payment-subscription 3.4.0-alpha.4 → 3.4.0-alpha.6
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
|
@@ -435,8 +435,9 @@ export async function invoiceDownload( req, res ) {
|
|
|
435
435
|
return res.sendError( 'To Email not Found', 500 );
|
|
436
436
|
}
|
|
437
437
|
console.log( getgroup.generateInvoiceTo );
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
const SES = JSON.parse( process.env.SES );
|
|
439
|
+
let fromEmail = SES.adminEmail;
|
|
440
|
+
const result = await sendEmailWithSES( getgroup.generateInvoiceTo, mailSubject, mailbody, attachments, fromEmail );
|
|
440
441
|
console.log( result );
|
|
441
442
|
let logObj = {
|
|
442
443
|
userName: req.user?.userName,
|
|
@@ -1774,6 +1774,7 @@ export const storeLocationList = async ( req, res ) => {
|
|
|
1774
1774
|
return { id: item.id, storeId: item.storeId, storeName: item.storeName };
|
|
1775
1775
|
} );
|
|
1776
1776
|
location = storeDetails.filter( ( item ) => item.storeProfile.city != '' && item.storeProfile.city != null && typeof ( item.storeProfile.city ) != undefined ).map( ( item ) => item.storeProfile.city );
|
|
1777
|
+
location = [ ...new Set( location ) ];
|
|
1777
1778
|
}
|
|
1778
1779
|
let productDetails = await basePricingService.findOne( { clientId: { $exists: false } }, { 'basePricing': 1, '_id': 0 } );
|
|
1779
1780
|
let product = productDetails.basePricing.map( ( item ) => item.productName );
|