Skip to content

Commit

Permalink
refactor(core-api): use pagination configuration limit
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed May 14, 2019
1 parent a9b721f commit 032caa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core-api/src/handlers/shared/schemas/pagination.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { app } from "@arkecosystem/core-container";
import * as Joi from "@hapi/joi";

export const pagination = {
Expand All @@ -10,5 +11,5 @@ export const pagination = {
limit: Joi.number()
.integer()
.min(1)
.max(100),
.max(app.resolveOptions("api").pagination.limit),
};

0 comments on commit 032caa1

Please sign in to comment.