diff --git a/src/twitch/rest.go b/src/twitch/rest.go index 03960ba4..4284af20 100644 --- a/src/twitch/rest.go +++ b/src/twitch/rest.go @@ -199,7 +199,7 @@ func getEventSubscriptions(ctx context.Context) ([]twitchEventSub, error) { type twitchResponse struct { Data []eventSub `json:"data"` Pagination *struct { - After string `json:"after"` + After string `json:"cursor"` } `json:"pagination"` } diff --git a/src/twitch/twitch.go b/src/twitch/twitch.go index 1f9dc467..4b4ad4f1 100644 --- a/src/twitch/twitch.go +++ b/src/twitch/twitch.go @@ -212,7 +212,6 @@ func syncWithTwitch(ctx context.Context, dbConn *pgxpool.Pool, updateAll bool) { return } p.EndBlock() - log.Info().Interface("Subscriptions", subscriptions).Msg("Got subs from twitch") const ( EventSubNone = 0 // No event of this type found @@ -271,7 +270,6 @@ func syncWithTwitch(ctx context.Context, dbConn *pgxpool.Pool, updateAll bool) { for twitchID, evStatuses := range streamerEventSubs { for evType, isSubbed := range evStatuses { if !isSubbed { - log.Info().Str("TwitchID", twitchID).Str("Type", evType).Msg("Subscribing") err = subscribeToEvent(ctx, evType, twitchID) if err != nil { log.Error().Err(err).Msg("Error while monitoring twitch")