Skip to content

Commit a9fe7f0

Browse files
committed
chore: remove excess SocketToken field from extracted struct
1 parent ed6d5fd commit a9fe7f0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tools/auth/donationalerts.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ func (p *DonationAlerts) FetchAuthUser(token *oauth2.Token) (*AuthUser, error) {
4949

5050
extracted := struct {
5151
Data struct {
52-
Id int `json:"id"`
53-
UniqueName string `json:"code"`
54-
Name string `json:"name"`
55-
Avatar string `json:"avatar"`
56-
Email string `json:"email"`
57-
SocketToken string `json:"socket_connection_token"`
52+
Id int `json:"id"`
53+
UniqueName string `json:"code"`
54+
Name string `json:"name"`
55+
Avatar string `json:"avatar"`
56+
Email string `json:"email"`
5857
} `json:"data"`
5958
}{}
6059
if err := json.Unmarshal(data, &extracted); err != nil {

0 commit comments

Comments
 (0)