From 164cadd8b9c6d16a1990f90d67cfbcc7e480430e Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Mon, 1 Aug 2022 15:21:23 +0700 Subject: [PATCH] feat: increased regular users' max sort keys to 2 possible use case, sorting by albumid, then size moderators and above still have no limits --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 1f5f173..8b587aa 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -1219,7 +1219,7 @@ self.list = async (req, res) => { // Thresholds for regular users (usergroups lower than moderator) const MAX_WILDCARDS_IN_KEY = 2 const MAX_TEXT_QUERIES = 3 // non-keyed keywords - const MAX_SORT_KEYS = 1 + const MAX_SORT_KEYS = 2 const MAX_IS_KEYS = 1 const filterObj = {