Skip to content

Global middleware not executing firstΒ #522

@MohnDoe

Description

@MohnDoe

Currently using middlewares to track events with @commandkit/analytics and I realized that the order is wrong, my global middleware is not executing first.

Image

After a chatInput command /workout :
-> first log = +workout.middleware.ts in my /commands/(Users) folder
-> second log = +global-middleware.ts in my /commands folder

Those log are the first thing executing in the beforeExecute() function of each middleware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions