Skip to content

Commit

Permalink
[dashboard] Don't list deleted user projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes authored and roboquat committed Aug 9, 2021
1 parent 631322b commit f46609f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/gitpod-db/src/typeorm/project-db-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class ProjectDBImpl implements ProjectDB {

public async findUserProjects(userId: string): Promise<Project[]> {
const repo = await this.getRepo();
return repo.find({ userId });
return repo.find({ userId, markedDeleted: false });
}

public async storeProject(project: Project): Promise<Project> {
Expand All @@ -67,7 +67,7 @@ export class ProjectDBImpl implements ProjectDB {

public async setProjectConfiguration(projectId: string, config: ProjectConfig): Promise<void> {
const repo = await this.getRepo();
const project = await repo.findOne({ id: projectId, deleted: false });
const project = await repo.findOne({ id: projectId, markedDeleted: false });
if (!project) {
throw new Error('A project with this ID could not be found');
}
Expand Down

0 comments on commit f46609f

Please sign in to comment.