diff --git a/package.json b/package.json index 47010c8a..d8f21330 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "express-minify": "^1.0.0", "graceful-fs": "^4.1.2", "json-typecheck": "^0.1.3", - "knex": "^0.14.3", + "knex": "^0.20.3", "lodash": "^4.17.5", "morgan": "^1.6.1", "mysql": "^2.9.0", diff --git a/src/database.js b/src/database.js index 4655eb40..a61fa131 100644 --- a/src/database.js +++ b/src/database.js @@ -42,8 +42,7 @@ class Database { }, pool: { min: Config.get('mysql.pool-size'), - max: Config.get('mysql.pool-size'), - refreshIdle: false + max: Config.get('mysql.pool-size') }, debug: !!process.env.KNEX_DEBUG };