From eea734b7d949d034f631cd1a01b79349ceb61bdf Mon Sep 17 00:00:00 2001 From: Taylor Raack Date: Thu, 11 Jan 2024 11:54:05 -1000 Subject: [PATCH] one more update for Lukas --- pkg/api/product_cache.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/api/product_cache.go b/pkg/api/product_cache.go index 7b4b524..0229513 100644 --- a/pkg/api/product_cache.go +++ b/pkg/api/product_cache.go @@ -88,13 +88,7 @@ func (p *ProductCache) Refresh(ctx context.Context) error { activeProducts := make(map[string]interface{}) for _, customer := range response.Customers { - if customer.Contracts == nil { - continue - } for _, contract := range customer.Contracts { - if contract.Items == nil { - continue - } for _, item := range contract.Items { if item.ProductID == nil { continue