diff --git a/components/routes/incoming_webhooks.js b/components/routes/incoming_webhooks.js index d290962..427ebb1 100644 --- a/components/routes/incoming_webhooks.js +++ b/components/routes/incoming_webhooks.js @@ -4,6 +4,7 @@ module.exports = function(webserver, controller) { debug('Configured /slack/receive url'); webserver.post('/slack/receive', function(req, res) { + console.log('Request', req) // NOTE: we should enforce the token check here diff --git a/knexfile.js b/knexfile.js index 150efa2..76bf339 100644 --- a/knexfile.js +++ b/knexfile.js @@ -13,11 +13,14 @@ if (process.env.NODE_ENV !== 'production') { password: process.env.DBPASSWORD, host: process.env.DBHOST, }, + pool: { min: 0, max: 10 }, + acquireConnectionTimeout: 5000, }; } else { connection = { client: 'mysql', connection: process.env.CLEARDB_DATABASE_URL, + acquireConnectionTimeout: 5000, }; } diff --git a/package.json b/package.json index e8652fd..d3d5cec 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "migrate": "knex migrate:latest", "rollback": "knex migrate:rollback", "test": "npm run mocha && npm run eslint", - "mocha": "mocha 'test/**/*.js'", + "mocha": "mocha --exit 'test/**/*.js'", "eslint": "eslint 'lib/**/*.js' 'skills/**/*.js' 'test/**/*.js'" }, "nodemonConfig": {