Skip to content
Snippets Groups Projects
Commit 696df97b authored by Guilherme Gazzo's avatar Guilherme Gazzo
Browse files

regression: properly overwrite `Email.sendAsync`

parent 27adffca
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ process.env.HTTP_FORWARDED_COUNT = process.env.HTTP_FORWARDED_COUNT || '1'; ...@@ -39,7 +39,7 @@ process.env.HTTP_FORWARDED_COUNT = process.env.HTTP_FORWARDED_COUNT || '1';
// Just print to logs if in TEST_MODE due to a bug in Meteor 2.5: TypeError: Cannot read property '_syncSendMail' of null // Just print to logs if in TEST_MODE due to a bug in Meteor 2.5: TypeError: Cannot read property '_syncSendMail' of null
if (process.env.TEST_MODE === 'true') { if (process.env.TEST_MODE === 'true') {
Email.sendAsync = function _sendAsync(options) { Email.sendAsync = async function _sendAsync(options) {
console.log('Email.sendAsync', options); console.log('Email.sendAsync', options);
}; };
} else if (process.env.NODE_ENV !== 'development') { } else if (process.env.NODE_ENV !== 'development') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment