var config = require('../../config');
var knex = require('knex')({
  debug : process.env.DEBUG,
  client : config('/dbAdapter') === 'postgres' ? 'pg' : config('/dbAdapter'),
  connection : config('/dbConnection')
});

module.exports = () => knex;
module.exports['@singleton'] = true;

@@ -103,53 +103,8 @@
 nt :
- config('/dbAdapter') === 'postgres' ? 'pg' :
  con

Simplify knex.js