Skip to content

Commit 06b0bb9

Browse files
committed
[projects] show last prebuild (not just for default branch)
fixes #5002
1 parent cbb1718 commit 06b0bb9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

components/server/src/projects/projects-service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ export class ProjectsService {
135135
} else {
136136
const limit = params.latest ? 1 : undefined;
137137
let branch = params.branch;
138-
if (limit && !branch) {
139-
const repository = await repositoryProvider.getRepo(user, owner, repo);
140-
branch = repository.defaultBranch;
141-
}
142138
prebuilds = await this.workspaceDb.trace({}).findPrebuiltWorkspacesByProject(project.id, branch, limit);
143139
}
144140

0 commit comments

Comments
 (0)