mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Store the Bookshelf instance on the Bookshelf module
- Assigns the ghostBookshelf instance to the Bookshelf.ghost property
This commit is contained in:
parent
fc53bc8a15
commit
34343e893d
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ var ghostBookshelf,
|
|||
sanitize = require('validator').sanitize;
|
||||
|
||||
// Initializes a new Bookshelf instance, for reference elsewhere in Ghost.
|
||||
ghostBookshelf = Bookshelf.initialize(config[process.env.NODE_ENV || 'development'].database);
|
||||
ghostBookshelf = Bookshelf.ghost = Bookshelf.initialize(config[process.env.NODE_ENV || 'development'].database);
|
||||
ghostBookshelf.client = config[process.env.NODE_ENV].database.client;
|
||||
|
||||
ghostBookshelf.validator = new Validator();
|
||||
|
|
Loading…
Add table
Reference in a new issue