From f12b641d116770803824d4c605df1d8d021d999d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 1 Apr 2014 16:37:02 -0400 Subject: [PATCH] whoops, fixing bad db call --- src/install.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/install.js b/src/install.js index 795656d8f1..003054541e 100644 --- a/src/install.js +++ b/src/install.js @@ -328,8 +328,7 @@ var async = require('async'), }, function (next) { // Default plugins - var Plugins = require('./plugins'), - db = require('./database.js'); + var Plugins = require('./plugins'); winston.info('Enabling default plugins'); @@ -350,7 +349,9 @@ var async = require('async'), }, next); }, function (next) { - var db = require('./src/database').init(function(err) { + var db = require('./database.js'); + + db.init(function(err) { if (!err) { db.setObjectField('widgets:global', 'footer', "[{\"widget\":\"html\",\"data\":{\"html\":\"\",\"title\":\"\",\"container\":\"\"}}]", next); }