Skip to content

Commit

Permalink
fix(eventsub): check on nil status
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed May 31, 2024
1 parent 4d4fd57 commit bea225f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/eventsub/internal/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (c *Manager) SubscribeToNeededEvents(
return
}

if len(status.Data) > 0 || (casterErr != nil && casterErr.Status == 409) {
if (status != nil && len(status.Data) > 0) || (casterErr != nil && casterErr.Status == 409) {
subStatus := "enabled"
subId := uuid.New()
if len(status.Data) > 0 {
Expand Down

0 comments on commit bea225f

Please sign in to comment.