Skip to content

Commit

Permalink
fix: Raise error in user middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
itsamirhn committed Nov 10, 2024
1 parent dcaba61 commit 6a4e53e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/bot/middleware/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func NewUserRetriever(db database.Client) telebot.MiddlewareFunc {
if err != nil {
return err
}
} else if err != nil {
return err
}
ctx.Set("user", user)
}
Expand Down

0 comments on commit 6a4e53e

Please sign in to comment.