diff --git a/internal/datamodel/user.go b/internal/datamodel/user.go index f8f137a..3ca27b0 100644 --- a/internal/datamodel/user.go +++ b/internal/datamodel/user.go @@ -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"` diff --git a/internal/events/events.go b/internal/events/events.go index 4681210..ee0ade4 100644 --- a/internal/events/events.go +++ b/internal/events/events.go @@ -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 }