mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix nosql ordering
This commit is contained in:
@@ -175,7 +175,7 @@ function convertToMongoSort(sort) {
|
||||
if (!sort) return null;
|
||||
return _zipObject(
|
||||
sort.map((col) => col.columnName),
|
||||
sort.map((col) => (col.order == 'DESC' ? -1 : 1))
|
||||
sort.map((col) => (col.direction == 'DESC' ? -1 : 1))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user