diff --git a/server/controllers/group.js b/server/controllers/group.js index 18f9182f..d3e8547e 100755 --- a/server/controllers/group.js +++ b/server/controllers/group.js @@ -386,7 +386,7 @@ class groupController extends baseController { if(result[i].role !== 'member'){ newResult.unshift(result[i]); }else{ - let publicCount = await projectInst.countWithPublic(result[i].id); + let publicCount = await projectInst.countWithPublic(result[i]._id); if(publicCount > 0){ newResult.push(result[i]); }else{