Skip to content

Commit cecdfd9

Browse files
authored
fix: only count preview branches toward the preview branch limit (#4283)
1 parent 2856662 commit cecdfd9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
The "Preview branches" usage on the Limits page now counts only preview branches.

apps/webapp/app/presenters/v3/LimitsPresenter.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export class LimitsPresenter extends BasePresenter {
155155
const activeBranchCount = await this._replica.runtimeEnvironment.count({
156156
where: {
157157
projectId,
158-
branchName: {
158+
type: "PREVIEW",
159+
parentEnvironmentId: {
159160
not: null,
160161
},
161162
archivedAt: null,

0 commit comments

Comments
 (0)