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({