fix: only count preview branches toward the preview branch limit (#4283)

This commit is contained in:
Chris Arderne
2026-07-17 16:54:25 +01:00
committed by GitHub
parent 285666290f
commit cecdfd94be
2 changed files with 8 additions and 1 deletions
@@ -0,0 +1,6 @@
---
area: webapp
type: fix
---
The "Preview branches" usage on the Limits page now counts only preview branches.
@@ -155,7 +155,8 @@ export class LimitsPresenter extends BasePresenter {
const activeBranchCount = await this._replica.runtimeEnvironment.count({
where: {
projectId,
branchName: {
type: "PREVIEW",
parentEnvironmentId: {
not: null,
},
archivedAt: null,