Skip to content

Commit

Permalink
fix: return err in BanUserForever
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Oct 10, 2024
1 parent d89fee1 commit a33a95e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/penalty/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ func BanUserForever(c *fiber.Ctx) error {

return nil
})
if err != nil {
return err
}

// construct message for user
message := Notification{
Expand Down

0 comments on commit a33a95e

Please sign in to comment.