Skip to content

Commit

Permalink
1501-production-config
Browse files Browse the repository at this point in the history
  • Loading branch information
basarbk committed Aug 4, 2020
1 parent c5869f1 commit d1775a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/email/EmailService.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ const sendAccountActivation = async (email, token) => {
</div>
`,
});
if (process.env.NODE_ENV === 'development') {
logger.info('url: ' + nodemailer.getTestMessageUrl(info));
}
logger.info('url: ' + nodemailer.getTestMessageUrl(info));
};

const sendPasswordReset = async (email, token) => {
Expand All @@ -35,9 +33,7 @@ const sendPasswordReset = async (email, token) => {
</div>
`,
});
if (process.env.NODE_ENV === 'development') {
logger.info('url: ' + nodemailer.getTestMessageUrl(info));
}
logger.info('url: ' + nodemailer.getTestMessageUrl(info));
};

module.exports = { sendAccountActivation, sendPasswordReset };

0 comments on commit d1775a5

Please sign in to comment.