Replace bcrypt with bcryptjs / move env to config
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const knex = require('knex');
|
||||
|
||||
const knexfile = require('../knexfile');
|
||||
const { environment} = require('../config/config')
|
||||
|
||||
const env = process.env.NODE_ENV || 'development';
|
||||
const env = environment || 'development';
|
||||
const configOptions = knexfile[env];
|
||||
|
||||
module.exports = knex(configOptions);
|
||||
|
||||
Reference in New Issue
Block a user