Skip to content

Commit 7ffe8c2

Browse files
committed
Set team members, alerts and schedule limits to 100m for self-hosting
1 parent 296959e commit 7ffe8c2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

apps/webapp/app/presenters/TeamPresenter.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getTeamMembersAndInvites } from "~/models/member.server";
22
import { BasePresenter } from "./v3/basePresenter.server";
33
import { getLimit } from "~/services/platform.v3.server";
4+
import { number } from "zod";
45

56
export class TeamPresenter extends BasePresenter {
67
public async call({ userId, organizationId }: { userId: string; organizationId: string }) {
@@ -13,7 +14,7 @@ export class TeamPresenter extends BasePresenter {
1314
return;
1415
}
1516

16-
const limit = await getLimit(organizationId, "teamMembers", 25);
17+
const limit = await getLimit(organizationId, "teamMembers", 100_000_000);
1718

1819
return {
1920
...result,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AlertChannelListPresenter extends BasePresenter {
4343
throw new Error(`Project not found: ${projectId}`);
4444
}
4545

46-
const limit = await getLimit(organization.organizationId, "alerts", 25);
46+
const limit = await getLimit(organization.organizationId, "alerts", 100_000_000);
4747

4848
return {
4949
alertChannels: await Promise.all(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export class ScheduleListPresenter extends BasePresenter {
256256
};
257257
});
258258

259-
const limit = await getLimit(project.organizationId, "schedules", 500);
259+
const limit = await getLimit(project.organizationId, "schedules", 100_000_000);
260260

261261
return {
262262
currentPage: page,

apps/webapp/app/v3/services/checkSchedule.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class CheckScheduleService extends BaseService {
7676
throw new ServiceValidationError("Project not found");
7777
}
7878

79-
const limit = await getLimit(project.organizationId, "schedules", 500);
79+
const limit = await getLimit(project.organizationId, "schedules", 100_000_000);
8080
const schedulesCount = await this._prisma.taskSchedule.count({
8181
where: {
8282
projectId,

0 commit comments

Comments
 (0)