Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ committed Aug 30, 2022
1 parent b1907e8 commit ac6dd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/usage/pkg/apiv1/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package apiv1

import (
"context"
"github.com/gitpod-io/gitpod/usage/pkg/contentservice"
"math"
"time"

Expand Down Expand Up @@ -48,7 +49,7 @@ func (s *BillingService) UpdateInvoices(ctx context.Context, in *v1.UpdateInvoic
return nil, status.Errorf(codes.Internal, "Failed to download usage report with ID: %s", in.GetReportId())
}

credits, err := s.creditSummaryForTeams(report)
credits, err := s.creditSummaryForTeams(report, in.GetReportId())
if err != nil {
log.Log.WithError(err).Errorf("Failed to compute credit summary.")
return nil, status.Errorf(codes.InvalidArgument, "failed to compute credit summary")
Expand Down

0 comments on commit ac6dd91

Please sign in to comment.