diff --git a/lib/common/service/filterService.js b/lib/common/service/filterService.js index 88650bb4f..7500eec88 100644 --- a/lib/common/service/filterService.js +++ b/lib/common/service/filterService.js @@ -53,7 +53,7 @@ Service.prototype.beforeFilter = function(msg, session, cb) { const next = (err, resp, opts) => { if (err || index >= this.befores.length) { - utils.invokeCallback(err, resp, opts); + cb(err, resp, opts); return; }