Fix erroneous orderBy parsing
This commit is contained in:
parent
6f5b9986e4
commit
7e619deb22
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue