errorhandling.js: use promise db.doShutdown interface

pull/3559/head
Ray Bellis 2019-01-31 11:14:27 +00:00
parent b664eb488c
commit ebb8a64e3c
1 changed files with 1 additions and 1 deletions

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