Skip to content

Commit

Permalink
Make num tickets camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Sep 23, 2024
1 parent d096c6a commit 94e1e9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/twitchets/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (c Config) applyGlobalConfig() {
type GlobalEventConfig struct {
Country twickets.Country `json:"country"`
Regions []twickets.Region `json:"regions"`
NumTickets int `json:"num_tickets"`
NumTickets int `json:"numTickets"`
Discount float64 `json:"discount"`
}

Expand Down
4 changes: 2 additions & 2 deletions test/assets/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ global:
regions:
- GBLO
- GBNW
num_tickets: 2
numTickets: 2
discount: 25

events:
- name: Event 1
- name: Event 2
regions: [GBSW]
- name: Event 3
num_tickets: 1
numTickets: 1
- name: Event 4
discount: 15
2 changes: 1 addition & 1 deletion twickets/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type Filter struct {
Name string `json:"name"`
Regions []Region `json:"regions"`
NumTickets int `json:"num_tickets"`
NumTickets int `json:"numTickets"`
Discount float64 `json:"discount"`
}

Expand Down

0 comments on commit 94e1e9c

Please sign in to comment.