MaiXinRong 5 年之前
父节点
当前提交
ff47a199c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/ledger.js

+ 1 - 1
app/service/ledger.js

@@ -244,7 +244,7 @@ module.exports = app => {
                 '  WHERE tender_id = ? and is_leaf = true' +
                 '  GROUP By unit';
             const sqlParam = [tenderId];
-            const units = this.db.query(sql, sqlParam);
+            const units = await this.db.query(sql, sqlParam);
             return this._.map(units, 'unit');
         }