Skip to content

Commit

Permalink
the order of execution of post middleware has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
dotX12 committed Nov 17, 2021
1 parent 73330d8 commit 73a126a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waio/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def handle_event(self, event: Dict[str, Any]) -> None:

logger.debug(f'Handlers: {current_handlers}, Return: {handle_responses}')

for middleware in self.labeler.MIDDLEWARES:
for middleware in reversed(self.labeler.MIDDLEWARES):
middleware.fill(event=message, handlers=current_handlers, handle_responses=handle_responses)
logger.debug(f'[POST]-Middleware - {middleware}')

Expand Down

0 comments on commit 73a126a

Please sign in to comment.