Skip to content

Commit

Permalink
fix min 25 (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammachin authored Mar 11, 2025
1 parent b154b56 commit 68a9b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/routes/api/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ router.get('/', async(req, res) => {
const service_provider_sid = account_sid ? null : parseServiceProviderSid(req.originalUrl);
const {page, count, alert_type, days, start, end} = req.query || {};
if (!page || page < 1) throw new DbErrorBadRequest('missing or invalid "page" query arg');
if (!count || count < 25 || count > 500) throw new DbErrorBadRequest('missing or invalid "count" query arg');
if (!count || count > 500) throw new DbErrorBadRequest('missing or invalid "count" query arg');

if (account_sid) {
const data = await queryAlerts({
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/api/recent-calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ router.get('/', async(req, res) => {
const service_provider_sid = account_sid ? null : parseServiceProviderSid(req.originalUrl);
const {page, count, trunk, direction, days, answered, start, end, filter} = req.query || {};
if (!page || page < 1) throw new DbErrorBadRequest('missing or invalid "page" query arg');
if (!count || count < 25 || count > 500) throw new DbErrorBadRequest('missing or invalid "count" query arg');
if (!count || count > 500) throw new DbErrorBadRequest('missing or invalid "count" query arg');

if (account_sid) {
const data = await queryCdrs({
Expand Down

0 comments on commit 68a9b42

Please sign in to comment.