File tree 1 file changed +2
-2
lines changed
components/usage/pkg/apiv1
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type UsageService struct {
22
22
v1.UnimplementedUsageServiceServer
23
23
}
24
24
25
- func (us * UsageService ) GetBilledUsage (ctx context.Context , in * v1.GetBilledUsageRequest ) (* v1.GetBilledUsageResponse , error ) {
25
+ func (us * UsageService ) ListBilledUsage (ctx context.Context , in * v1.ListBilledUsageRequest ) (* v1.ListBilledUsageResponse , error ) {
26
26
usageRecords , err := db .ListUsage (ctx , us .conn , db .AttributionID (in .GetAttributionId ()))
27
27
if err != nil {
28
28
return nil , status .Error (codes .Internal , "unable to retrieve billed usage" )
@@ -50,7 +50,7 @@ func (us *UsageService) GetBilledUsage(ctx context.Context, in *v1.GetBilledUsag
50
50
billedSessions = append (billedSessions , billedSession )
51
51
}
52
52
53
- return & v1.GetBilledUsageResponse {
53
+ return & v1.ListBilledUsageResponse {
54
54
Sessions : billedSessions ,
55
55
}, nil
56
56
}
You can’t perform that action at this time.
0 commit comments