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 714e4ec commit b4a2090Copy full SHA for b4a2090
1 file changed
apps/webapp/app/presenters/v3/QueueListPresenter.server.ts
@@ -6,12 +6,13 @@ import { assertExhaustive } from "@trigger.dev/core";
6
import { determineEngineVersion } from "~/v3/engineVersion.server";
7
8
const DEFAULT_ITEMS_PER_PAGE = 25;
9
+const MAX_ITEMS_PER_PAGE = 100;
10
export class QueueListPresenter extends BasePresenter {
11
private readonly perPage: number;
12
13
constructor(perPage: number = DEFAULT_ITEMS_PER_PAGE) {
14
super();
- this.perPage = perPage;
15
+ this.perPage = Math.min(perPage, MAX_ITEMS_PER_PAGE);
16
}
17
18
public async call({
0 commit comments