laiguoran 3 lat temu
rodzic
commit
86d29c4b30
1 zmienionych plików z 1 dodań i 1 usunięć
  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);