Skip to content

Commit 7ad64ce

Browse files
Andrew Farriesroboquat
authored andcommitted
Filter out deleted clusters in findByName
1 parent dd44961 commit 7ad64ce

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
@@ -39,7 +39,7 @@ export class WorkspaceClusterDBImpl implements WorkspaceClusterDB {
3939

4040
async findByName(name: string, applicationCluster: string): Promise<WorkspaceCluster | undefined> {
4141
const repo = await this.getRepo();
42-
return repo.findOne({ name, applicationCluster });
42+
return repo.findOne({ name, applicationCluster, deleted: false });
4343
}
4444

4545
async findFiltered(predicate: WorkspaceClusterFilter): Promise<WorkspaceClusterWoTLS[]> {

0 commit comments

Comments
 (0)