Oak, `ctx.assert`, and middleware
I thought that
ctx.assert
would somehow "carry along" the information about the asserted condition to the next middleware in the chain, but I can't seem to get that to work.
Am I misunderstanding something here? I was thinking if I do something like this, I wouldn't have to to a null check in the last middleware, but I apparently do?
0 Replies