Updated uploadController.js

Fixed filtering null albumid
This commit is contained in:
Bobby Wibowo 2020-05-03 04:40:04 +07:00
parent 3d11e6a0ba
commit f189d86abc
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

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