From 4237144e6ad74ae762de5c4db04af64172c6220d Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 28 Oct 2022 15:55:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=8A=B6=E6=80=81=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/push/config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api/app/lib/controllers/push/config.js b/api/app/lib/controllers/push/config.js index d4b299e..c6382c8 100644 --- a/api/app/lib/controllers/push/config.js +++ b/api/app/lib/controllers/push/config.js @@ -12,7 +12,15 @@ async function list (ctx) { let findOption = { where: { del: false - } + }, + include: [{ + model: models.ProjectCorrelation, + where: { + del: false, + pepProjectId: state == 'notYet' ? { $ne: null } : undefined + }, + required: true + }] } let anxinStrucsRange = await anxinStrucIdRange({