mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
fix(array limits): 20 elem array enforcement for all tiers
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = {
|
||||
// or not.
|
||||
function validateArraySize(req, array) {
|
||||
const FREEMIUM_INPUT_SIZE = 20
|
||||
const PRO_INPUT_SIZE = 100
|
||||
const PRO_INPUT_SIZE = 20
|
||||
|
||||
if (req.locals && req.locals.proLimit) {
|
||||
if (array.length <= PRO_INPUT_SIZE) return true
|
||||
|
||||
Reference in New Issue
Block a user