From cab6ba00bc7c3864b6c94404ac8cff79f13bdb60 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 25 Sep 2017 17:40:05 +0100 Subject: [PATCH] additional async eachSeries fix --- app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);