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 3b449e8 commit 6f55f89Copy full SHA for 6f55f89
1 file changed
apps/webapp/app/presenters/v3/LimitsPresenter.server.ts
@@ -129,15 +129,11 @@ export class LimitsPresenter extends BasePresenter {
129
? "override"
130
: "default";
131
132
- // Get schedule count for this org
+ // Get schedule count for this org (via project relation which has an index)
133
const scheduleCount = await this._replica.taskSchedule.count({
134
where: {
135
- instances: {
136
- some: {
137
- environment: {
138
- organizationId,
139
- },
140
+ project: {
+ organizationId,
141
},
142
143
});
0 commit comments