Skip to content

Commit

Permalink
invalid event check
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 25, 2024
1 parent d0bc148 commit afe43c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/checkin/checkin.handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func (h *handlerImpl) checkRegTime(event string) (bool, string) {
h.log.Named("checkRegTime").Warn(fmt.Sprintf("Forbidden: Freshy Night Registration starts at %s", h.regConf.FreshyNightStart))
return false, fmt.Sprintf("Freshy Night Registration starts at %s", h.regConf.FreshyNightStart)
}
default:
h.log.Named("checkRegTime").Warn("Forbidden: Invalid event")
return false, "Invalid event name"
}

return true, ""
Expand Down

0 comments on commit afe43c2

Please sign in to comment.