move emailsPath to function

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 29a3d8bd53
commit 8b615c64fa

@ -33,9 +33,9 @@ Emailer.transports = {
var app;
var viewsDir = nconf.get('views_dir');
var emailsPath = path.join(viewsDir, 'emails');
Emailer.getTemplates = function (config, cb) {
var emailsPath = path.join(viewsDir, 'emails');
async.waterfall([
function (next) {
file.walk(emailsPath, next);

Loading…
Cancel
Save