Replace bcrypt with bcryptjs / move env to config

This commit is contained in:
2020-05-07 15:10:15 +02:00
parent bf2fb47033
commit fce5a162d3
7 changed files with 30 additions and 10 deletions

View File

@@ -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);