From 6bf3e45fa1b0ddb022c381124b5a49e2c25dc0a3 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sun, 9 Oct 2022 16:20:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=205764=20=E5=BA=94=E7=94=A8=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=90=9C=E7=B4=A2=E6=A0=8F=E8=BE=93=E5=85=A5=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=90=9C=E7=B4=A2=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/alarm/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/app/lib/controllers/alarm/app.js b/api/app/lib/controllers/alarm/app.js index 354e8d6..bd16e84 100644 --- a/api/app/lib/controllers/alarm/app.js +++ b/api/app/lib/controllers/alarm/app.js @@ -254,6 +254,10 @@ async function apiErrorList (ctx) { '$app->projectCorrelations.pep_project_id$': { $in: projectRes.map(p => p.id) }, + } + ) + findOption.where.$or.push( + { '$app.name$': { $like: `%${keyword}%` } } )