Browse Source

fix 应用告警关键字查询

dev
巴林闲侠 2 years ago
parent
commit
cb119faa3b
  1. 2
      api/app/lib/controllers/alarm/app.js

2
api/app/lib/controllers/alarm/app.js

@ -249,7 +249,6 @@ async function apiErrorList (ctx) {
${pepProjectSql} ${pepProjectSql}
WHERE project_name LIKE '%${keyword}%'` WHERE project_name LIKE '%${keyword}%'`
).toPromise() ).toPromise()
if (projectRes.length) {
findOption.where.$or.push( findOption.where.$or.push(
{ {
'$app->projectCorrelations.pep_project_id$': { '$app->projectCorrelations.pep_project_id$': {
@ -259,7 +258,6 @@ async function apiErrorList (ctx) {
} }
) )
} }
}
// if (errType) { // if (errType) {
// if (errType == 'element') { // if (errType == 'element') {

Loading…
Cancel
Save