tango-app-api-infra 3.3.3-beta.3 → 3.3.3-beta.4
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
|
@@ -1033,7 +1033,7 @@ export async function infraReportSent( req, res ) {
|
|
|
1033
1033
|
const fileContent = readFileSync( join() + '/src/hbs/dailyInfraReport.hbs', 'utf8' );
|
|
1034
1034
|
const htmlContent = handlebars.compile( fileContent );
|
|
1035
1035
|
let Uidomain = `${JSON.parse( process.env.URL ).domain}`;
|
|
1036
|
-
const html = htmlContent( { ...req.body, Uidomain: Uidomain, issueCount: issueCount, avgDownTime: avgDownTime, reportdate:
|
|
1036
|
+
const html = htmlContent( { ...req.body, Uidomain: Uidomain, issueCount: issueCount, avgDownTime: avgDownTime, reportdate:dayjs(date).format( 'DD-MM-YYYY' ), content: obj, date: date, csmEmail: csmEmail, domain: JSON.parse( process.env.URL ).apiDomain } );
|
|
1037
1037
|
if ( isValidEmail( req.body.email ) ) {
|
|
1038
1038
|
const result = await sendEmailWithSES( req.body.email, subject, html, attachments, JSON.parse( process.env.SES ).adminEmail );
|
|
1039
1039
|
res.sendSuccess( result );
|