Skip to content

Commit

Permalink
fix(hapi): use eosConfig value to set the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 30, 2022
1 parent 58a4fc9 commit ccf2398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hapi/src/routes/get-producers-info.route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const Boom = require('@hapi/boom')
const Joi = require('joi')

const { eosConfig } = require('../config')
const { producerService } = require('../services')

module.exports = {
Expand All @@ -25,7 +26,7 @@ module.exports = {
input: Joi.object({
bpParams: Joi.object({
type: Joi.string().valid('api', 'ssl', 'p2p').optional(),
owners: Joi.array().items(Joi.string().required()).max(150).optional()
owners: Joi.array().items(Joi.string().required()).max(eosConfig.eosTopLimit).optional()
}).required()
}).required()
}).options({ stripUnknown: true })
Expand Down

0 comments on commit ccf2398

Please sign in to comment.