From 8b615c64faa7683971ae340610065f412a5c4b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 16 Mar 2018 11:26:16 -0400 Subject: [PATCH] move emailsPath to function --- src/emailer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emailer.js b/src/emailer.js index a841eb1f91..2419b7ea2b 100644 --- a/src/emailer.js +++ b/src/emailer.js @@ -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);