|
|
@ -249,16 +249,14 @@ async function apiErrorList (ctx) { |
|
|
|
${pepProjectSql} |
|
|
|
WHERE project_name LIKE '%${keyword}%'` |
|
|
|
).toPromise() |
|
|
|
if (projectRes.length) { |
|
|
|
findOption.where.$or.push( |
|
|
|
{ |
|
|
|
'$app->projectCorrelations.pep_project_id$': { |
|
|
|
$in: projectRes.map(p => p.id) |
|
|
|
}, |
|
|
|
'$app.name$': { $like: `%${keyword}%` } |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
findOption.where.$or.push( |
|
|
|
{ |
|
|
|
'$app->projectCorrelations.pep_project_id$': { |
|
|
|
$in: projectRes.map(p => p.id) |
|
|
|
}, |
|
|
|
'$app.name$': { $like: `%${keyword}%` } |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
// if (errType) {
|
|
|
|