Просмотр исходного кода

Fix displayed timestamps in costs chart (#4611)

Mauricio Araujo 2 лет назад
Родитель
Сommit
b81d4c55d6
1 измененных файлов с 2 добавлено и 2 удалено
  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