Skip to content

Commit

Permalink
fix: adjust page limit normalization (#5672)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Dec 18, 2023
1 parent 3b63513 commit d0facc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class FeatureSearchController extends Controller {
['enabled', 'disabled'].includes(tag[1]),
);
const normalizedLimit =
Number(limit) > 0 && Number(limit) <= 50 ? Number(limit) : 100;
Number(limit) > 0 && Number(limit) <= 100 ? Number(limit) : 25;
const normalizedOffset = Number(offset) > 0 ? Number(offset) : 0;
const normalizedSortBy: string = sortBy ? sortBy : 'createdAt';
const normalizedSortOrder =
Expand Down

0 comments on commit d0facc7

Please sign in to comment.