laiguoran 4 éve
szülő
commit
5ce98c3878
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/service/change_audit_list.js

+ 1 - 1
app/service/change_audit_list.js

@@ -28,7 +28,7 @@ module.exports = app => {
          * @return {void}
          */
         async getList(cid) {
-            const sql = 'SELECT * FROM ?? WHERE `cid` = ? ORDER BY `lid` = 0, `id` asc';
+            const sql = 'SELECT * FROM ?? WHERE `cid` = ? ORDER BY `lid` = "0", `id` asc';
             const sqlParam = [this.tableName, cid];
             return await this.db.query(sql, sqlParam);
         }