Skip to content

Commit 68daa63

Browse files
committed
[projects] show last prebuild (not just for default branch)
fixes #5002
1 parent b09ccef commit 68daa63

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
@@ -126,10 +126,6 @@ export class ProjectsService {
126126
} else {
127127
const limit = params.latest ? 1 : undefined;
128128
let branch = params.branch;
129-
if (limit && !branch) {
130-
const repository = await repositoryProvider.getRepo(user, owner, repo);
131-
branch = repository.defaultBranch;
132-
}
133129
prebuilds = await this.workspaceDb.trace({}).findPrebuiltWorkspacesByProject(project.id, branch, limit);
134130
}
135131

0 commit comments

Comments
 (0)