From a21ce7fba150cc247a8081b6fffc502fb0ce75df Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 12 Feb 2019 09:24:20 +0100 Subject: [PATCH] Fix --- loopback/server/server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/loopback/server/server.js b/loopback/server/server.js index 0e2e123ca..188b5eb0f 100644 --- a/loopback/server/server.js +++ b/loopback/server/server.js @@ -57,7 +57,7 @@ app.start = function(bootOptions, port, callback) { }); }; -app.boot = function(myBootOptions, callback) { +app.boot = function(bootOptions, callback) { // Internatinalization if (fs.existsSync(localeDir)) { @@ -118,7 +118,7 @@ app.boot = function(myBootOptions, callback) { } } - let bootOptions = { + let myBootOptions = { appRootDir: __dirname, appConfigRootDir: rootDir, modelsRootDir: rootDir, @@ -129,10 +129,10 @@ app.boot = function(myBootOptions, callback) { }; if (fs.existsSync(`/etc/salix`)) - bootOptions.dsRootDir = `/etc/salix`; + myBootOptions.dsRootDir = `/etc/salix`; - Object.assign(bootOptions, myBootOptions); - boot(this, bootOptions, callback); + Object.assign(myBootOptions, bootOptions); + boot(this, myBootOptions, callback); }; if (require.main === module)