From 2ec21b52571072024b28a74954a3987df97ffacc Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 15 Jan 2019 09:04:21 +0100 Subject: [PATCH] fs existsSync --- services/mailer/application/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/mailer/application/config.js b/services/mailer/application/config.js index 6b3311861..25b430119 100644 --- a/services/mailer/application/config.js +++ b/services/mailer/application/config.js @@ -11,7 +11,7 @@ let configFiles = [ ]; for (let configFile of configFiles) { - if (fs.accessSync(configFile)) + if (fs.existsSync(configFile)) Object.assign(config, require(configFile)); } @@ -22,7 +22,7 @@ let proxyFiles = [ ]; for (let proxyFile of proxyFiles) { - if (fs.accessSync(proxyFile)) + if (fs.existsSync(proxyFile)) Object.assign(proxyConf, require(proxyFile)); }