Skip to content

Commit 8d28656

Browse files
committed
fix: refreshing subscription that exeeded notification delivery failure rate.
1 parent 490f60b commit 8d28656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webserver/twitch/discord.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func RefreshSubscriptions() {
7777
return
7878
}
7979
for _, s := range getSubscriptions {
80-
if s.Status == twitchgo.SubscriptionStatusWebhookCallbackVerificationFailed {
80+
if s.Status == twitchgo.SubscriptionStatusWebhookCallbackVerificationFailed || s.Status == twitchgo.SubscriptionStatusNotificationFailuresExceeded {
8181
err = tSession.DeleteSubscription(s.ID)
8282
if err != nil {
8383
log.Printf("Error on deleting failed subscription '%s' for %s (%s): %v", s.Type, s.Condition["broadcaster_user_id"], s.ID, err)

0 commit comments

Comments
 (0)