diff --git a/components/gitpod-db/src/typeorm/workspace-db-impl.ts b/components/gitpod-db/src/typeorm/workspace-db-impl.ts index 46eb519eea1c55..06526b37b9ef16 100644 --- a/components/gitpod-db/src/typeorm/workspace-db-impl.ts +++ b/components/gitpod-db/src/typeorm/workspace-db-impl.ts @@ -1048,7 +1048,7 @@ export abstract class AbstractTypeORMWorkspaceDBImpl implements WorkspaceDB { .createQueryBuilder("ws") // We need to put the subquery into the join condition (ON) here to be able to reference `ws.id` which is // not possible in a subquery on JOIN (e.g. 'LEFT JOIN (SELECT ... WHERE i.workspaceId = ws.id)') - .leftJoinAndMapOne( + .innerJoinAndMapOne( "ws.instance", DBWorkspaceInstance, "wsi",