diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-21 04:48:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-21 04:48:52 +0200 |
| commit | d41070c7b00fafc974a1a6e7b6d1b42391fa57ed (patch) | |
| tree | 4178eba89627e8581cdc5eea65bf7f11591f6b45 /lib/db/bookshelf.js | |
| parent | d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf (diff) | |
all async paths working
Diffstat (limited to 'lib/db/bookshelf.js')
| -rw-r--r-- | lib/db/bookshelf.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db/bookshelf.js b/lib/db/bookshelf.js index 69157cc..27d9dbb 100644 --- a/lib/db/bookshelf.js +++ b/lib/db/bookshelf.js @@ -1,4 +1,4 @@ -var knex = require('knex')({ +const knex = require('knex')({ client: 'mysql2', connection: { host : process.env.DB_HOST, @@ -16,7 +16,7 @@ var knex = require('knex')({ } }) -var bookshelf = require('bookshelf')(knex) +const bookshelf = require('bookshelf')(knex) module.exports = { bookshelf: bookshelf, |
