[twitch] Fix: Pagination fetching broken for eventsub subscriptions

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-12-24 17:28:51 +01:00
parent facd2e7b91
commit 48767c3494
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -487,7 +487,10 @@ func (c *Client) getEventSubSubscriptions(ctx context.Context) ([]eventSubSubscr
} }
params.Set("after", resp.Pagination.Cursor) 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 return out, nil