fix
This commit is contained in:
4
index.js
4
index.js
@ -259,7 +259,7 @@ io.on('connection', function(socket)
|
|||||||
if(orderBy && orderBy.length > 0)
|
if(orderBy && orderBy.length > 0)
|
||||||
{
|
{
|
||||||
const orderDesc = navigation.orderDesc ? 'DESC' : 'ASC';
|
const orderDesc = navigation.orderDesc ? 'DESC' : 'ASC';
|
||||||
args.unshift(orderBy);
|
args.splice(1, 0, orderBy);
|
||||||
order = 'ORDER BY ?? ' + orderDesc;
|
order = 'ORDER BY ?? ' + orderDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ io.on('connection', function(socket)
|
|||||||
if(orderBy && orderBy.length > 0)
|
if(orderBy && orderBy.length > 0)
|
||||||
{
|
{
|
||||||
const orderDesc = navigation.orderDesc ? 'DESC' : 'ASC';
|
const orderDesc = navigation.orderDesc ? 'DESC' : 'ASC';
|
||||||
args.unshift(orderBy);
|
args.splice(1, 0, orderBy);
|
||||||
order = 'ORDER BY ?? ' + orderDesc;
|
order = 'ORDER BY ?? ' + orderDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user