handling cases where no callback is passed to emailer.send

This commit is contained in:
Julian Lam
2015-02-05 13:09:32 -05:00
parent 28c57b6635
commit fdaccc804c

View File

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