MaiXinRong 2 年之前
父節點
當前提交
2da473421e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/lib/sql_builder.js

+ 1 - 0
app/lib/sql_builder.js

@@ -269,6 +269,7 @@ class SqlBuilder {
 
         const orderArr = [];
         for (const index in this.orderBy) {
+            if (!this.orderBy[index]) continue;
             orderArr.push(' ?? ' + this.orderBy[index][1]);
             this.sqlParam.push(this.orderBy[index][0]);
         }