From ebb8a64e3c9468fa7eeb4b0b44b742ad0374fb79 Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Thu, 31 Jan 2019 11:14:27 +0000 Subject: [PATCH] errorhandling.js: use promise db.doShutdown interface --- src/node/hooks/express/errorhandling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/errorhandling.js b/src/node/hooks/express/errorhandling.js index 9a07dc669..66553621c 100644 --- a/src/node/hooks/express/errorhandling.js +++ b/src/node/hooks/express/errorhandling.js @@ -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);