surrealised
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -191,3 +191,7 @@ var __defProp = Object.defineProperty; | ||
if (this.orderByFields.length > 0) { | ||
query += ` ORDER BY ${this.orderByFields.map((f) => `${f.field} ${f.direction || "ASC"}`).join(", ")}`; | ||
query += ` ORDER BY ${this.orderByFields.map((f) => { | ||
let key = Object.keys(f)[0]; | ||
let value = f[key]; | ||
return `${key} ${value}`; | ||
}).join(", ")}`; | ||
} | ||
@@ -194,0 +198,0 @@ if (this.limitClause) { |
{ | ||
"name": "surrealised", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Another SurrealDB Library for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96694
1061