laiguoran 3 роки тому
батько
коміт
96252e139b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/service/datacollect_tender.js

+ 1 - 1
app/service/datacollect_tender.js

@@ -55,7 +55,7 @@ module.exports = app => {
         // }
 
         async getList(pid) {
-            return await this.db.select(this.tableName, { pid });
+            return await this.db.select(this.tableName, { where: { pid } });
         }
 
         async updateList(pid, tids) {