mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
[twitch] Fix: Pagination fetching broken for eventsub subscriptions
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
facd2e7b91
commit
48767c3494
1 changed files with 4 additions and 1 deletions
|
@ -487,7 +487,10 @@ func (c *Client) getEventSubSubscriptions(ctx context.Context) ([]eventSubSubscr
|
|||
}
|
||||
|
||||
params.Set("after", resp.Pagination.Cursor)
|
||||
resp.Pagination.Cursor = "" // Clear from struct as struct is reused
|
||||
|
||||
// Clear from struct as struct is reused
|
||||
resp.Data = nil
|
||||
resp.Pagination.Cursor = ""
|
||||
}
|
||||
|
||||
return out, nil
|
||||
|
|
Loading…
Reference in a new issue