mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
handling cases where no callback is passed to emailer.send
This commit is contained in:
@@ -20,6 +20,7 @@ var fs = require('fs'),
|
||||
};
|
||||
|
||||
Emailer.send = function(template, uid, params, callback) {
|
||||
if (!callback) { callback = function() {}; }
|
||||
if (!app) {
|
||||
winston.warn('[emailer] App not ready!');
|
||||
return callback();
|
||||
|
||||
Reference in New Issue
Block a user