errorhandling.js: use promise db.doShutdown interface
parent
b664eb488c
commit
ebb8a64e3c
|
@ -21,7 +21,7 @@ exports.gracefulShutdown = function(err) {
|
||||||
console.log("graceful shutdown...");
|
console.log("graceful shutdown...");
|
||||||
|
|
||||||
// do the db shutdown
|
// do the db shutdown
|
||||||
db.db.doShutdown(function() {
|
db.doShutdown().then(function() {
|
||||||
console.log("db sucessfully closed.");
|
console.log("db sucessfully closed.");
|
||||||
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Reference in New Issue