File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
components/usage/pkg/apiv1 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type UsageService struct {
2222 v1.UnimplementedUsageServiceServer
2323}
2424
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 ) {
2626 usageRecords , err := db .ListUsage (ctx , us .conn , db .AttributionID (in .GetAttributionId ()))
2727 if err != nil {
2828 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
5050 billedSessions = append (billedSessions , billedSession )
5151 }
5252
53- return & v1.GetBilledUsageResponse {
53+ return & v1.ListBilledUsageResponse {
5454 Sessions : billedSessions ,
5555 }, nil
5656}
You can’t perform that action at this time.
0 commit comments