markets api: only load 500 markets by default
This commit is contained in:
parent
3313b55853
commit
571cf80e13
|
@ -10,7 +10,7 @@ const queryParams = z
|
||||||
.object({
|
.object({
|
||||||
limit: z
|
limit: z
|
||||||
.number()
|
.number()
|
||||||
.default(1000)
|
.default(500)
|
||||||
.or(z.string().regex(/\d+/).transform(Number))
|
.or(z.string().regex(/\d+/).transform(Number))
|
||||||
.refine((n) => n >= 0 && n <= 1000, 'Limit must be between 0 and 1000'),
|
.refine((n) => n >= 0 && n <= 1000, 'Limit must be between 0 and 1000'),
|
||||||
before: z.string().optional(),
|
before: z.string().optional(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user