From fdaccc804c126ea55de83a6387f45de34716f2a3 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 5 Feb 2015 13:09:32 -0500 Subject: [PATCH] handling cases where no callback is passed to emailer.send --- src/emailer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emailer.js b/src/emailer.js index 6eaf913e4c..e7c92fa812 100644 --- a/src/emailer.js +++ b/src/emailer.js @@ -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();