Skip to content

Commit

Permalink
Merge pull request #62 from Emilgardis/seconds_global_cooldown
Browse files Browse the repository at this point in the history
fix field for seconds in global_cooldown
  • Loading branch information
lleadbet authored May 27, 2021
2 parents b779fcf + b8e01ab commit 5ac2b2d
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 5ac2b2d

Please sign in to comment.