handling cases where no callback is passed to emailer.send

v1.18.x
Julian Lam 10 years ago
parent 28c57b6635
commit fdaccc804c

@ -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();

Loading…
Cancel
Save