Skip to content

Commit

Permalink
fix(app/fiche-actions): Increase fetch limit to default 1000 (#3375)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux authored Oct 21, 2024
1 parent ebf0d63 commit 870020e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/shared/domain/query_options.schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {z} from 'zod';
import { z } from 'zod';

export const sortSchema = z.object({
field: z.string(),
Expand All @@ -8,7 +8,7 @@ export const sortSchema = z.object({
export const queryOptionsSchema = z.object({
sort: sortSchema.array().optional(),
page: z.number().optional().default(1),
limit: z.number().min(1).max(100).default(10),
limit: z.number().min(1).max(1000).default(1000),
});

export function getQueryOptionsSchema<
Expand Down

0 comments on commit 870020e

Please sign in to comment.