Skip to content

Commit

Permalink
Fixed channel_points_won to be null on channel.prediction.progress an…
Browse files Browse the repository at this point in the history
…d .lock
  • Loading branch information
Xemdo committed Jul 4, 2023
1 parent ee48aa7 commit d785d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/events/types/prediction/prediction.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
ChannelPointsUsed: int(util.RandomInt(10*1000)) + 100,
}
sum += t.ChannelPointsUsed
if params.Trigger == "prediction-lock" || params.Trigger == "prediction-end" {
if params.Trigger == "prediction-end" {
if i == 0 {
t.ChannelPointsWon = intPointer(t.ChannelPointsUsed * 2)
} else {
Expand Down

0 comments on commit d785d07

Please # to comment.