From ce58e2ecc176a18aaa237bb0aa73ba3cdd5104f5 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 6 Mar 2024 06:34:31 +0700 Subject: [PATCH] fix: filter by album ids --- controllers/uploadController.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index e88bda1..7db3794 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -1842,12 +1842,6 @@ self.list = async (req, res) => { } return obj }) - - // If filtering by album IDs, - // then filter out uploads with missing albums data (assume disabled/deleted) - if (filterByAlbums) { - result.files = result.files.filter(file => result.albums[file.albumid] !== undefined) - } } // If we are not listing all uploads, send response