robtweed/qewd

Passing this to beforeMicroServiceHandler

killmenot opened this issue · 1 comments

Hi @robtweed

qewd/lib/appHandler.js

Lines 49 to 52 in b74a7c5

if (appModule.beforeMicroServiceHandler) {
this.beforeHandlers[application] = function(messageObj, session, send, finished) {
return appModule.beforeMicroServiceHandler.call(this, messageObj, finished);
};

Looks like this passes to beforeMicroServiceHandler is not the same this that passed to appModule.init for example. Could you please take a look?

will be fixed in tests branch