From b81d4c55d65e2c44f6afa2d985a41d0863817c46 Mon Sep 17 00:00:00 2001 From: Mauricio Araujo Date: Mon, 6 May 2024 15:58:50 -0400 Subject: [PATCH] Fix displayed timestamps in costs chart (#4611) --- internal/billing/metronome.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/billing/metronome.go b/internal/billing/metronome.go index dc4fce926f..17074608cc 100644 --- a/internal/billing/metronome.go +++ b/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