Consume finished timestamp from websocket message when it's available to update the relevant row in the templates list.

This commit is contained in:
mabashian 2020-02-24 12:28:46 -05:00 committed by Rebeccah
parent 6d6d99bcf8
commit 3234f246db

View File

@ -138,6 +138,10 @@ function ListTemplatesController(
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;
}
};