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)); }