Ver código fonte

Fix timestamps in formatted cost

Mauricio Araujo 2 anos atrás
pai
commit
762dc38dbe
1 arquivos alterados com 2 adições e 2 exclusões
  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