diff --git a/api/app/lib/controllers/alarm/app.js b/api/app/lib/controllers/alarm/app.js index f66e740..e35d329 100644 --- a/api/app/lib/controllers/alarm/app.js +++ b/api/app/lib/controllers/alarm/app.js @@ -261,6 +261,10 @@ async function apiErrorList (ctx) { '$app.name$': { $like: `%${keyword}%` } } ) + } else { + findOption.where['$app->projectCorrelations.id$'] = { + $in: pomsProjectIds + } } if (errType) {