Explorar el Código

Fix displayed timestamps in costs chart (#4611)

Mauricio Araujo hace 2 años
padre
commit
b81d4c55d6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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