Fix erroneous orderBy parsing

This commit is contained in:
Sven Slootweg 2024-01-16 01:07:49 +01:00
parent 6f5b9986e4
commit 7e619deb22

View file

@ -205,7 +205,7 @@ module.exports = {
} }
if (orderBy != null) { if (orderBy != null) {
let ascending = orderBy.startsWith("-"); let ascending = !orderBy.startsWith("-");
let orderField = (ascending === true) let orderField = (ascending === true)
? orderBy ? orderBy