Skip to content

Commit

Permalink
[db] fix adminGetWorkspaces/findAllWorkspaceAndInstances
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev authored and roboquat committed Jun 24, 2022
1 parent 9a9c01e commit eb79aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gitpod-db/src/typeorm/workspace-db-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit eb79aef

Please sign in to comment.