mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 23:46:22 +00:00
fix: filter by album ids
This commit is contained in:
parent
2c47e6df1d
commit
ce58e2ecc1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user