Description
Applying global middleware via app.use seems to pass control to the next part of the chain before next() is called.
Example:
module.exports = function(app) {
app.use(function(payload, user){
console.log('This comment should print and then timeout')
})
app.command("/pilot", slashCommand);
};
This should fail however control seems to pass correctly to the command. What am I missing?
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Description
Applying global middleware via
app.useseems to pass control to the next part of the chain beforenext()is called.Example:
This should fail however control seems to pass correctly to the command. What am I missing?
What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])