Skip to content

Commit 419689b

Browse files
author
Andrew Farries
committed
Rename GetBilledUsage method in server impl
1 parent dcb709b commit 419689b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/usage/pkg/apiv1/usage.go

+2-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)