Skip to content

Commit

Permalink
return false for each jobId if it does not exist (#37116) (#37242)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed May 28, 2019
1 parent 63449fe commit 38c3796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/ml/server/models/job_service/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ export function jobsProvider(callWithRequest) {
const exists = allJobIds.some(existsJobId => regexp.test(existsJobId));
results[jobId] = exists;
});
} else {
jobIds.forEach((jobId) => {
results[jobId] = false;
});
}

return results;
Expand Down

0 comments on commit 38c3796

Please sign in to comment.