Skip to content

Commit

Permalink
fix filters in event.Run
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Aug 8, 2024
1 parent e36204a commit b303a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/event/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Run(cfg config.Config, date int) error {
eventsQ := pg.NewEvents(db)
referralsQ := pg.NewReferrals(db)

evType := evTypes.Get(models.TypeEarlyTest, evtypes.FilterInactive, evtypes.FilterByAutoClaim(true))
evType := evTypes.Get(models.TypeEarlyTest, evtypes.FilterInactive)
if evType == nil {
log.Infof("Event type %s is inactive", models.TypeEarlyTest)
return nil
Expand Down Expand Up @@ -50,7 +50,7 @@ func Run(cfg config.Config, date int) error {
Select()

if err != nil {
log.WithError(err).Error("Failed to select %s events")
log.WithError(err).Errorf("Failed to select %s events", err)
return err
}

Expand Down

0 comments on commit b303a7a

Please sign in to comment.