From f189d86abcfa4de98d246615c24317c4218745df Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sun, 3 May 2020 04:40:04 +0700 Subject: [PATCH] Updated uploadController.js Fixed filtering null albumid --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 8513d07..84a0c67 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -1143,7 +1143,7 @@ self.list = async (req, res) => { (filterObj.queries.albumid && filterObj.flags.albumidNull) || (!filterObj.queries.exclude.albumid && !filterObj.queries.albumid && filterObj.flags.albumidNull)) this.orWhereNull('albumid') - else if (filterObj.flags.ipNull === false) + else if (filterObj.flags.albumidNull === false) this.orWhereNotNull('albumid') }) else if (!all)