From 762dc38dbe6e9ed42a78adf08dd2d3e1d6ebe2c4 Mon Sep 17 00:00:00 2001 From: Mauricio Araujo Date: Mon, 6 May 2024 15:54:06 -0400 Subject: [PATCH] Fix timestamps in formatted cost --- 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