From 0c36c3ff6e0f20108928e35d4093aa8a37bf8360 Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 14 Oct 2022 16:22:52 +0800 Subject: [PATCH] =?UTF-8?q?api=20=20pomsProject=E9=A1=B9=E7=9B=AE=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/project/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/project/index.js b/api/app/lib/controllers/project/index.js index 49e27d3..83797ba 100644 --- a/api/app/lib/controllers/project/index.js +++ b/api/app/lib/controllers/project/index.js @@ -36,7 +36,7 @@ async function pomsProject (ctx) { } } if (global && !userInfo.role.includes('SuperAdmin') && !userInfo.role.includes('admin')) { - findOption.where = { id: { $in: userInfo.correlationProject } } + findOption.where.id = { $in: userInfo.correlationProject } } if (pepId) { findOption.where.id = pepId