Skip to content

Commit

Permalink
[gitpod-db] Don't consider garbage-collected prebuilds as potential b…
Browse files Browse the repository at this point in the history
…ases for incremental prebuilds
  • Loading branch information
jankeromnes committed Apr 5, 2022
1 parent 6ce0f18 commit 87f8858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/gitpod-db/src/typeorm/workspace-db-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ export abstract class AbstractTypeORMWorkspaceDBImpl implements WorkspaceDB {
query = query.orderBy("pws.creationTime", "DESC");
query = query.innerJoinAndMapOne("pws.workspace", DBWorkspace, "ws", "pws.buildWorkspaceId = ws.id");
query = query.andWhere("ws.deleted = false");
query = query.andWhere("ws.contentDeletedTime = ''");

const res = await query.getMany();
return res.map((r) => {
Expand Down

0 comments on commit 87f8858

Please sign in to comment.