nicklaw5 / helix

A Twitch Helix API client written in Go.
MIT License
243 stars 88 forks source link

HOTFIX: Hypetrain progress event unmarshal error struct 'EventSubContribution' #109

Closed jackmcguire1 closed 3 years ago

jackmcguire1 commented 3 years ago

The hype train progress event fails to unmarshal into helix's EventSubContribution struct as the 'Total' field is of type String when it should be of type integer.

{ "event": { "top_contributions": [{ "user_id": "602005942", "user_login": "miguell0lxd", "user_name": "miguell0lxd", "type": "bits", "total": 4 }, { "user_id": "616819305", "user_login": "le0n145", "user_name": "le0n145", "type": "subscription", "total": 1000 }], }

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1055490174


Totals Coverage Status
Change from base Build 1020667936: 0.0%
Covered Lines: 1052
Relevant Lines: 1089

💛 - Coveralls