Skip to content

Commit 1573864

Browse files
Andrew Farriesroboquat
authored andcommitted
Make findFiltered respect soft deletion
1 parent 36a496e commit 1573864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/gitpod-db/src/typeorm/workspace-cluster-db-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class WorkspaceClusterDBImpl implements WorkspaceClusterDB {
5858
let qb = repo
5959
.createQueryBuilder("wsc")
6060
.select(Object.keys(prototype).map((k) => `wsc.${k}`))
61-
.where("TRUE = TRUE"); // make sure andWhere works
61+
.where("wsc.deleted = 0");
6262
if (predicate.name !== undefined) {
6363
qb = qb.andWhere("wsc.name = :name", predicate);
6464
}

0 commit comments

Comments
 (0)