fix(array limits): 20 elem array enforcement for all tiers

This commit is contained in:
Chris Troutner
2019-11-03 17:33:34 -08:00
parent 1c1bb25a54
commit 4079bbdd48
+1 -1
View File
@@ -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