Skip to content

Commit

Permalink
event.Run add New method for balanceQ and eventsQ
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Aug 8, 2024
1 parent 2f4b866 commit f359ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/event/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Run(cfg config.Config, date int) error {
return fmt.Errorf("failed to do lvlup and referrals updates: %w", err)
}

err = balancesQ.FilterByNullifier(balance.Nullifier).Update(map[string]any{
err = balancesQ.New().FilterByNullifier(balance.Nullifier).Update(map[string]any{
data.ColAmount: pg.AddToValue(data.ColAmount, totalPoints),
data.ColLevel: level,
})
Expand Down

0 comments on commit f359ebb

Please sign in to comment.