We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4347499 commit abd99aaCopy full SHA for abd99aa
apps/webapp/app/presenters/v3/ManageConcurrencyPresenter.server.ts
@@ -63,9 +63,15 @@ export class ManageConcurrencyPresenter extends BasePresenter {
63
userId: true,
64
},
65
66
+ project: {
67
+ select: {
68
+ deletedAt: true,
69
+ },
70
71
72
where: {
73
organizationId,
74
+ archivedAt: null,
75
76
});
77
@@ -78,6 +84,9 @@ export class ManageConcurrencyPresenter extends BasePresenter {
78
84
// Don't count parent environments
79
85
if (environment.isBranchableEnvironment) continue;
80
86
87
+ // Don't count deleted projects
88
+ if (environment.project.deletedAt) continue;
89
+
81
90
const limit = currentPlan
82
91
? getDefaultEnvironmentLimitFromPlan(environment.type, currentPlan)
83
92
: 0;
0 commit comments