Skip to content

Commit

Permalink
fix field for seconds in global_cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed May 23, 2021
1 parent b779fcf commit b8e01ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
},
GlobalCooldown: models.RewardGlobalCooldown{
IsEnabled: true,
Value: 300,
Seconds: 300,
},
BackgroundColor: "#c0ffee",
Image: models.RewardImage{
Expand Down
2 changes: 1 addition & 1 deletion internal/models/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type RewardMax struct {

type RewardGlobalCooldown struct {
IsEnabled bool `json:"is_enabled"`
Value int64 `json:"value"`
Seconds int64 `json:"seconds"`
}

type RewardImage struct {
Expand Down

0 comments on commit b8e01ab

Please sign in to comment.