tango-app-api-client 3.0.18-dev → 3.0.19-dev

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-client",
3
- "version": "3.0.18-dev",
3
+ "version": "3.0.19-dev",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "nodemon": "^3.0.3",
27
27
  "swagger-ui-express": "^5.0.0",
28
28
  "tango-api-schema": "^2.0.65",
29
- "tango-app-api-middleware": "^1.0.49-dev",
29
+ "tango-app-api-middleware": "^1.0.51-dev",
30
30
  "winston": "^3.11.0",
31
31
  "winston-daily-rotate-file": "^5.0.0"
32
32
  },
@@ -33,8 +33,7 @@ export async function create( req, res ) {
33
33
  path: '/src/hbs/approved-client.hbs',
34
34
  subject: 'Your account has been verified by Tango!',
35
35
  };
36
- const mail = await sendEmail( data );
37
- logger.info( { message: mail, function: 'findOneUser' } );
36
+ await sendEmail( data );
38
37
  const record = {
39
38
  'clientName': leadRecord.clientName,
40
39
  'clientId': String( tangoId ),
@@ -77,7 +76,7 @@ export const sendEmail = ( data ) => {
77
76
  const subject = data.subject;
78
77
  const fileContent = readFileSync( join() + data.path, 'utf8' );
79
78
  const htmlContent = handlebars.compile( fileContent );
80
- const html = htmlContent();
79
+ const html = htmlContent( { url: appConfig.url.domain } );
81
80
  return sendEmailWithSES( data.email, subject, html, attachments, appConfig.cloud.aws.ses.adminEmail );
82
81
  } catch ( error ) {
83
82
  return error;