Răsfoiți Sursa

Fix displayed timestamps in costs chart (#4611)

Mauricio Araujo 2 ani în urmă
părinte
comite
b81d4c55d6
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      internal/billing/metronome.go

+ 2 - 2
internal/billing/metronome.go

@@ -390,8 +390,8 @@ func (m MetronomeClient) ListCustomerCosts(ctx context.Context, customerID uuid.
 
 	for _, customerCost := range result.Data {
 		formattedCost := types.FormattedCost{
-			StartTimestamp: startingOnTimestamp,
-			EndTimestamp:   endingBeforeTimestamp,
+			StartTimestamp: customerCost.StartTimestamp,
+			EndTimestamp:   customerCost.EndTimestamp,
 		}
 		for _, creditType := range customerCost.CreditTypes {
 			formattedCost.Cost += creditType.Cost