Skip to content

Commit

Permalink
Fix displayed timestamps in costs chart (#4611)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauAraujo authored May 6, 2024
1 parent c2a9b8f commit b81d4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/billing/metronome.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b81d4c5

Please sign in to comment.