fix: filter by album ids

This commit is contained in:
Bobby 2024-03-06 06:34:31 +07:00
parent 2c47e6df1d
commit ce58e2ecc1
No known key found for this signature in database
GPG Key ID: B2F45B6A3C9A8FCA

View File

@ -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