Skip to content

Commit 1a67783

Browse files
committed
Fix
1 parent 797af60 commit 1a67783

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

components/server/src/api/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66
import { ConnectRouter } from "@bufbuild/connect";
7-
import { UserService as UserServiceDefinition } from "@gitpod/public-api/lib/gitpod/experimental/v1/workspaces_connectweb";
7+
import { UserService as UserServiceDefinition } from "@gitpod/public-api/lib/gitpod/experimental/v1/user_connectweb";
88
import { inject, injectable } from "inversify";
99
import { UserService } from "./user";
1010

components/server/src/api/user.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ import {
2424
} from "@gitpod/public-api/lib/gitpod/experimental/v1/user_pb";
2525

2626
export class UserService implements ServiceImpl<typeof UserServiceInterface> {
27-
getAuthenticatedUser(req: GetAuthenticatedUserRequest): Promise<GetAuthenticatedUserResponse> {
27+
async getAuthenticatedUser(req: GetAuthenticatedUserRequest): Promise<GetAuthenticatedUserResponse> {
2828
throw new ConnectError("unimplemented", Code.Unimplemented);
2929
}
3030

31-
listSSHKeysGetAuthenticatedUserRequest(req: ListSSHKeysRequest): Promise<ListSSHKeysResponse> {
31+
async listSSHKeys(req: ListSSHKeysRequest): Promise<ListSSHKeysResponse> {
3232
throw new ConnectError("unimplemented", Code.Unimplemented);
3333
}
3434

35-
createSSHKeyGetAuthenticatedUserRequest(req: CreateSSHKeyRequest): Promise<CreateSSHKeyResponse> {
35+
async createSSHKey(req: CreateSSHKeyRequest): Promise<CreateSSHKeyResponse> {
3636
throw new ConnectError("unimplemented", Code.Unimplemented);
3737
}
3838

39-
getSSHKeyGetAuthenticatedUserRequest(req: GetSSHKeyRequest): Promise<GetSSHKeyResponse> {
39+
async getSSHKey(req: GetSSHKeyRequest): Promise<GetSSHKeyResponse> {
4040
throw new ConnectError("unimplemented", Code.Unimplemented);
4141
}
4242

43-
deleteSSHKeyGetAuthenticatedUserRequest(req: DeleteSSHKeyRequest): Promise<DeleteSSHKeyResponse> {
43+
async deleteSSHKey(req: DeleteSSHKeyRequest): Promise<DeleteSSHKeyResponse> {
4444
throw new ConnectError("unimplemented", Code.Unimplemented);
4545
}
4646

47-
getGitTokenGetAuthenticatedUserRequest(req: GetGitTokenRequest): Promise<GetGitTokenResponse> {
47+
async getGitToken(req: GetGitTokenRequest): Promise<GetGitTokenResponse> {
4848
throw new ConnectError("unimplemented", Code.Unimplemented);
4949
}
5050

51-
blockUserGetAuthenticatedUserRequest(req: BlockUserRequest): Promise<BlockUserResponse> {
51+
async blockUser(req: BlockUserRequest): Promise<BlockUserResponse> {
5252
throw new ConnectError("unimplemented", Code.Unimplemented);
5353
}
5454
}

components/server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export class Server<C extends GitpodClient, S extends GitpodServer> {
396396

397397
{
398398
const apiApp = express();
399-
apiApp.use(expressConnectMiddleware(this.apiRouter.routes));
399+
apiApp.use(expressConnectMiddleware({ routes: this.apiRouter.routes }));
400400
this.apiServer = apiApp.listen(9877, () => {
401401
log.info(`Connect API server listening on: ${<AddressInfo>this.apiServer!.address()}`);
402402
});

0 commit comments

Comments
 (0)