Consume finished timestamp on org templates list when available via websocket message

This commit is contained in:
mabashian 2020-02-24 16:49:27 -05:00 committed by Rebeccah
parent db43341f96
commit d5dd3c521f

View File

@ -33,6 +33,10 @@ export default ['$scope', '$stateParams', 'Rest', 'GetBasePath', '$state', 'OrgJ
const recentJob = template.summary_fields.recent_jobs[i];
if (recentJob.id === msg.unified_job_id) {
recentJob.status = msg.status;
if (msg.finished) {
recentJob.finished = msg.finished;
template.last_job_run = msg.finished;
}
break;
}
};