From 8af63d6bf886195ba15ed3f9b7cf2c2f20e5c870 Mon Sep 17 00:00:00 2001 From: seb Date: Thu, 15 Oct 2026 21:04:27 +0200 Subject: [PATCH] u --- src/api/routes/order.js | 6 +++--- src/api/routes/quote.js | 6 +++--- src/api/routes/shipment.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/api/routes/order.js b/src/api/routes/order.js index f8d2957..2969595 100644 --- a/src/api/routes/order.js +++ b/src/api/routes/order.js @@ -68,7 +68,7 @@ export function register(app, basePath = '') { * type: integer * default: 50 * minimum: 1 - * maximum: 100 + * maximum: 1000 * description: Number of orders to return * - in: query * name: search @@ -248,8 +248,8 @@ export function register(app, basePath = '') { if (rawLimit !== undefined) { limit = parseInt(rawLimit, 10); - if (!Number.isInteger(limit) || limit < 1 || limit > 100) { - return res.status(400).json({ error: 'limit must be an integer between 1 and 100' }); + if (!Number.isInteger(limit) || limit < 1 || limit > 1000) { + return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' }); } } diff --git a/src/api/routes/quote.js b/src/api/routes/quote.js index ada26e2..e939edf 100644 --- a/src/api/routes/quote.js +++ b/src/api/routes/quote.js @@ -71,7 +71,7 @@ export function register(app, basePath = '') { * type: integer * default: 50 * minimum: 1 - * maximum: 100 + * maximum: 1000 * description: Number of quotes to return * - in: query * name: search @@ -239,8 +239,8 @@ export function register(app, basePath = '') { if (rawLimit !== undefined) { limit = parseInt(rawLimit, 10); - if (!Number.isInteger(limit) || limit < 1 || limit > 100) { - return res.status(400).json({ error: 'limit must be an integer between 1 and 100' }); + if (!Number.isInteger(limit) || limit < 1 || limit > 1000) { + return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' }); } } diff --git a/src/api/routes/shipment.js b/src/api/routes/shipment.js index fc41653..a894dc5 100644 --- a/src/api/routes/shipment.js +++ b/src/api/routes/shipment.js @@ -281,7 +281,7 @@ export function register(app, basePath = '') { * type: integer * default: 50 * minimum: 1 - * maximum: 100 + * maximum: 1000 * description: Number of shipments to return * - in: query * name: search @@ -362,8 +362,8 @@ export function register(app, basePath = '') { if (rawLimit !== undefined) { limit = parseInt(rawLimit, 10); - if (!Number.isInteger(limit) || limit < 1 || limit > 100) { - return res.status(400).json({ error: 'limit must be an integer between 1 and 100' }); + if (!Number.isInteger(limit) || limit < 1 || limit > 1000) { + return res.status(400).json({ error: 'limit must be an integer between 1 and 1000' }); } }