u
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user