@@ -8,7 +8,7 @@ import { UsageServiceClient } from "./usage_grpc_pb";
8
8
import { TraceContext } from "@gitpod/gitpod-protocol/lib/util/tracing" ;
9
9
import * as opentracing from "opentracing" ;
10
10
import { Metadata } from "@grpc/grpc-js" ;
11
- import { GetBilledUsageRequest , GetBilledUsageResponse } from "./usage_pb" ;
11
+ import { ListBilledUsageRequest , ListBilledUsageResponse } from "./usage_pb" ;
12
12
import { injectable , inject } from "inversify" ;
13
13
import * as grpc from "@grpc/grpc-js" ;
14
14
@@ -89,18 +89,18 @@ export class PromisifiedUsageServiceClient {
89
89
) ;
90
90
}
91
91
92
- public async getBilledUsage ( _ctx : TraceContext , attributionId : string ) : Promise < GetBilledUsageResponse > {
93
- const ctx = TraceContext . childContext ( `/usage-service/getBilledUsage ` , _ctx ) ;
92
+ public async listBilledUsage ( _ctx : TraceContext , attributionId : string ) : Promise < ListBilledUsageResponse > {
93
+ const ctx = TraceContext . childContext ( `/usage-service/listBilledUsage ` , _ctx ) ;
94
94
95
95
try {
96
- const req = new GetBilledUsageRequest ( ) ;
96
+ const req = new ListBilledUsageRequest ( ) ;
97
97
req . setAttributionId ( attributionId ) ;
98
98
99
- const response = await new Promise < GetBilledUsageResponse > ( ( resolve , reject ) => {
100
- this . client . getBilledUsage (
99
+ const response = await new Promise < ListBilledUsageResponse > ( ( resolve , reject ) => {
100
+ this . client . listBilledUsage (
101
101
req ,
102
102
withTracing ( ctx ) ,
103
- ( err : grpc . ServiceError | null , response : GetBilledUsageResponse ) => {
103
+ ( err : grpc . ServiceError | null , response : ListBilledUsageResponse ) => {
104
104
if ( err ) {
105
105
reject ( err ) ;
106
106
return ;
0 commit comments