diff --git a/components/usage/pkg/apiv1/billing.go b/components/usage/pkg/apiv1/billing.go index 428493e9669f4d..d96698240414bd 100644 --- a/components/usage/pkg/apiv1/billing.go +++ b/components/usage/pkg/apiv1/billing.go @@ -377,7 +377,7 @@ func (s *BillingService) reconcileStripeInvoices(ctx context.Context, id db.Attr } // check if a usage entry exists for this invoice var existingUsage db.Usage - result := s.conn.First(existingUsage, "description = ?", usage.Description) + result := s.conn.First(&existingUsage, "description = ?", usage.Description) if result.Error != nil { if errors.Is(result.Error, gorm.ErrRecordNotFound) { log.Infof("No usage entry found for invoice %s. Inserting one now.", invoice.ID)