diff --git a/app.js b/app.js index ea3fc08..33f3f9a 100644 --- a/app.js +++ b/app.js @@ -175,7 +175,13 @@ const processCompletedDeposits = (callback) => { }); }); // TODO: Implement inserting messages into a pending message queue instead - }, cb); + }, (err) => { + if (err) { + return cb(err, null); + } + + return cb(null, true); + }); } return cb(null, true);