Skip to content

Commit

Permalink
[billing] Fix usage report download
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ committed Aug 31, 2022
1 parent dd0e3e0 commit b8c6f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/usage/pkg/contentservice/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (c *Client) DownloadUsageReport(ctx context.Context, filename string) (Usag
}
defer decompressor.Close()

decoder := json.NewDecoder(body)
decoder := json.NewDecoder(decompressor)
var report UsageReport
if err := decoder.Decode(&report); err != nil {
return UsageReport{}, fmt.Errorf("failed to deserialize report: %w", err)
Expand Down

0 comments on commit b8c6f9e

Please sign in to comment.