Skip to content

Commit d75c045

Browse files
committed
Type hacks
1 parent f459c95 commit d75c045

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/server/src/ide-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class IDEService {
3434

3535
private cacheConfig?: IDEConfig;
3636

37-
async getIDEConfig(request: IdeServiceApi.GetConfigRequest): Promise<IDEConfig> {
37+
async getIDEConfig(request: { id: string; email?: string }): Promise<IDEConfig> {
3838
try {
3939
const response = await this.ideService.getConfig(request);
4040
const config: IDEConfig = JSON.parse(response.content);

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3329,7 +3329,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
33293329
async getIDEOptions(ctx: TraceContext): Promise<IDEOptions> {
33303330
const user = this.checkUser("identifyUser");
33313331
const email = User.getPrimaryEmail(user);
3332-
const ideConfig = await this.ideService.getIDEConfig({ ...user, email });
3332+
const ideConfig = await this.ideService.getIDEConfig({ id: user.id, email });
33333333
return ideConfig.ideOptions;
33343334
}
33353335

0 commit comments

Comments
 (0)