errorhandling.js: use promise db.doShutdown interface

This commit is contained in:
Ray Bellis 2019-01-31 11:14:27 +00:00
parent b664eb488c
commit ebb8a64e3c

View file

@ -21,7 +21,7 @@ exports.gracefulShutdown = function(err) {
console.log("graceful shutdown...");
// do the db shutdown
db.db.doShutdown(function() {
db.doShutdown().then(function() {
console.log("db sucessfully closed.");
process.exit(0);