From f0de5055558e944c3b34c87bfc75b90072e1d736 Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Thu, 12 Oct 2017 20:52:28 +0800 Subject: [PATCH] fix: project public show bug --- server/controllers/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/group.js b/server/controllers/group.js index 29807176..91ea038e 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{