fix: only count preview branches toward the preview branch limit (#4283)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user