From 4eaf544ad735d6439050143bffbbc7c7809c765b Mon Sep 17 00:00:00 2001 From: danschumann Date: Sat, 23 Nov 2013 22:29:08 -0800 Subject: [PATCH] Update base.js No longer need `|| 'development'`, since it is defaulted in the top index. If we did need `|| 'development'` here, we'd need it on the next line too, otherwise it breaks. --- core/server/models/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/models/base.js b/core/server/models/base.js index 2258d87522..6a3b671cf3 100644 --- a/core/server/models/base.js +++ b/core/server/models/base.js @@ -10,7 +10,7 @@ var ghostBookshelf, sanitize = require('validator').sanitize; // Initializes a new Bookshelf instance, for reference elsewhere in Ghost. -ghostBookshelf = Bookshelf.ghost = Bookshelf.initialize(config[process.env.NODE_ENV || 'development'].database); +ghostBookshelf = Bookshelf.ghost = Bookshelf.initialize(config[process.env.NODE_ENV].database); ghostBookshelf.client = config[process.env.NODE_ENV].database.client; ghostBookshelf.validator = new Validator();