Browse Source

fix 应用告警limit 报错

dev
巴林闲侠 3 years ago
parent
commit
883c1d8817
  1. 9
      api/app/lib/controllers/alarm/app.js

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

@ -301,12 +301,13 @@ async function apiErrorList (ctx) {
findOption.where.$or.push( findOption.where.$or.push(
{ {
'$app.name$': { $like: `%${keyword}%` } '$app.name$': { $like: `%${keyword}%` }
} },
) )
} else { } else {
findOption.where['$app->projectCorrelations.id$'] = { // findOption.where['$app->projectCorrelations.id$'] = {
$in: pomsProjectIds // $in: pomsProjectIds
} // }
findOption.include[0].include[0].where.id = { $in: pomsProjectIds }
} }
if (errType) { if (errType) {

Loading…
Cancel
Save