소스 검색

bug修复

laiguoran 3 년 전
부모
커밋
86d29c4b30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/datacollect_audit.js

+ 1 - 1
app/service/datacollect_audit.js

@@ -55,7 +55,7 @@ module.exports = app => {
         }
 
         async getList(pid) {
-            const list = await this.db.select(this.tableName, { pid });
+            const list = await this.db.select(this.tableName, { where: { pid } });
             for (const l of list) {
                 if (l.uid) {
                     const accountInfo = await this.ctx.service.projectAccount.getDataById(l.uid);