Skip to content

Commit

Permalink
[twitch] Fix: Pagination fetching broken for eventsub subscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Dec 24, 2022
1 parent facd2e7 commit 48767c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/twitch/eventsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48767c3

Please sign in to comment.