cu8-sequelize-oracle
cu8-sequelize-oracle copied to clipboard
Working great, except when I kill express, does not exit
This is working great for me except when I kill express, the terminal hangs. This only happens after I run a query, otherwise I can kill express just fine.
Here's my request:
exports.getUser = function(req, res, next) { var params = req.params; Users.findOne( { where: {userId: params.id}, include: [ { all: true, nested: true } ]} ) .then(function (allNestedUsers) { console.log("done fetching nested user with joins "); res.json(allNestedUsers); }); };
here are my pool settings: pool: { max: 50, min: 0, timeout : 600, queueRequests: true, queueTimeout: 600000, increment : 1 }