Skip to content

Commit 4b13468

Browse files
easyCZroboquat
authored andcommitted
[billing] Fix usage report download
1 parent 9dfafc0 commit 4b13468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/usage/pkg/contentservice/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (c *Client) DownloadUsageReport(ctx context.Context, filename string) (Usag
103103
}
104104
defer decompressor.Close()
105105

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

0 commit comments

Comments
 (0)