Replace bcrypt with bcryptjs / move env to config
This commit is contained in:
1 parent
bf2fb47033
commit
fce5a162d3
7 files changed
+30
-10
No files matched your search
+2
-2
@@ -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