Skip to content

Commit

Permalink
Fix keyfob ID field
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Jun 25, 2024
1 parent cb12fa7 commit a45bfa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datamodel/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type User struct {
Last string `keycloak:"last"`
Email string `keycloak:"email"`
EmailVerified bool `keycloak:"emailVerified"`
FobID int `keycloak:"attr.fobID"`
FobID int `keycloak:"attr.keyfobID"`
WaiverState string `keycloak:"attr.waiverState"`
NonBillable bool `keycloak:"attr.nonBillable"`
DiscountType string `keycloak:"attr.discountType"`
Expand Down
1 change: 1 addition & 0 deletions internal/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (e *EventCache) getEvents(now, until time.Time) ([]*datamodel.Event, error)
func (e *EventCache) fillCache(ctx context.Context) bool {
// Don't run if not configured
if e.env.DiscordEventBotToken == "" || e.env.DiscordGuildID == "" {
log.Printf("not filling events cache because DiscordEventBotToken==nil=%t, DiscordGuildID==nil=%t", e.env.DiscordEventBotToken == "", e.env.DiscordGuildID == "")
return true
}

Expand Down

0 comments on commit a45bfa8

Please sign in to comment.