Skip to content

Commit

Permalink
Merge pull request #59 from isd-sgcu/dev
Browse files Browse the repository at this point in the history
Invalid event name check
  • Loading branch information
bookpanda authored Jul 25, 2024
2 parents f2e3e9a + afe43c2 commit 3af0bb5
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 3af0bb5

Please sign in to comment.