From 48767c3494946144647aa9a41d7a6400cca8846a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 24 Dec 2022 17:28:51 +0100 Subject: [PATCH] [twitch] Fix: Pagination fetching broken for eventsub subscriptions Signed-off-by: Knut Ahlers --- pkg/twitch/eventsub.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/twitch/eventsub.go b/pkg/twitch/eventsub.go index 7009d1c..6d798ab 100644 --- a/pkg/twitch/eventsub.go +++ b/pkg/twitch/eventsub.go @@ -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