Skip to content

Commit b1391e5

Browse files
authored
fix: mistyped+misnamed bracket fields in user and team (#156)
1 parent cb5ddc7 commit b1391e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/model.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ type (
165165
}
166166

167167
Team struct {
168-
Bracket *string `json:"bracket,omitempty"`
169168
Members []int `json:"members,omitempty"`
170169
ID int `json:"id"`
171170
Created string `json:"created"`
@@ -182,10 +181,10 @@ type (
182181
OauthID *string `json:"oauth_id,omitempty"`
183182
Place *string `json:"place,omitempty"`
184183
Score *int `json:"score,omitempty"`
184+
BracketID *int `json:"bracket_id,omitempty"`
185185
}
186186

187187
User struct {
188-
Bracket *string `json:"bracket"`
189188
ID int `json:"id"`
190189
TeamID *int `json:"team_id,omitempty"`
191190
Country *string `json:"country,omitempty"`
@@ -202,6 +201,7 @@ type (
202201
Type *string `json:"type,omitempty"`
203202
Created *string `json:"created,omitempty"`
204203
Secret *string `json:"secret,omitempty"`
204+
BracketID *int `json:"bracket_id,omitempty"`
205205
}
206206

207207
StatChallSubmission struct {

0 commit comments

Comments
 (0)