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]);
         }