Skip to content

Commit

Permalink
[ML] Fixing issue with historical job audit messages (#21718) (#21724)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Aug 7, 2018
1 parent fb32fac commit 31e123b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function jobAuditMessagesProvider(callWithRequest) {
let gte = null;
if (jobId !== undefined && from === undefined) {
const jobs = await callWithRequest('ml.jobs', { jobId });
if (jobs.length) {
gte = moment(jobs[0].create_time).valueOf();
if (jobs.count > 0 && jobs.jobs !== undefined) {
gte = moment(jobs.jobs[0].create_time).valueOf();
}
} else if (from !== undefined) {
gte = `now-${from}`;
Expand Down

0 comments on commit 31e123b

Please sign in to comment.