Do not re-assign
This commit is contained in:
parent
818f48398c
commit
b2d643cf1d
1 changed files with 2 additions and 2 deletions
|
|
@ -26,12 +26,12 @@ var LamassuConfig = require('lamassu-config');
|
||||||
var routes = require('./routes');
|
var routes = require('./routes');
|
||||||
|
|
||||||
module.exports = function (options) {
|
module.exports = function (options) {
|
||||||
var connectionString = options.postgres;
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
var connectionString;
|
||||||
var server;
|
var server;
|
||||||
var config;
|
var config;
|
||||||
|
|
||||||
connectionString = connectionString ||
|
connectionString = options.postgres ||
|
||||||
'postgres://lamassu:lamassu@localhost/lamassu';
|
'postgres://lamassu:lamassu@localhost/lamassu';
|
||||||
|
|
||||||
config = new LamassuConfig(connectionString);
|
config = new LamassuConfig(connectionString);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue