Skip to content

Commit

Permalink
checkin baan res
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jul 25, 2024
1 parent e504fc5 commit 3fec81b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion constant/checkin.constant.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package constant

const BAAN_RESULT = "baan-result"
const RPKM_CONFIRM = "confirm-rpkm"
const BAAN_RESULT = "baan-result"
const RPKM_DAY_ONE = "rpkm-day-1"
const RPKM_DAY_TWO = "rpkm-day-2"
const FRESHY_NIGHT_CONFIRM = "freshy-night-confirm"
Expand Down
5 changes: 5 additions & 0 deletions internal/checkin/checkin.handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ func (h *handlerImpl) checkRegTime(event string) (bool, string) {
h.log.Named("checkRegTime").Warn(fmt.Sprintf("Forbidden: RPKM67 Confirmation Registration starts at %s", h.regConf.RpkmConfirmStart))
return false, fmt.Sprintf("RPKM67 Confirmation Registration starts at %s", h.regConf.RpkmConfirmStart)
}
case constant.BAAN_RESULT:
if nowGMTPlus7.Before(h.regConf.BaanResultStart) {
h.log.Named("checkRegTime").Warn(fmt.Sprintf("Forbidden: Baan Selection Result starts at %s", h.regConf.BaanResultStart))
return false, fmt.Sprintf("Baan Selection Result starts at %s", h.regConf.BaanResultStart)
}
case constant.RPKM_DAY_ONE:
if nowGMTPlus7.Before(h.regConf.RpkmDayOneStart) {
h.log.Named("checkRegTime").Warn(fmt.Sprintf("Forbidden: RPKM67 Day One Registration starts at %s", h.regConf.RpkmDayOneStart))
Expand Down

0 comments on commit 3fec81b

Please sign in to comment.