builds per day: fix dynamic update to wrong result

the wrong dataset was updated, causing the graph to increase
the number of failed builds when a build succeeded and vice-versa.
pull/137/head
Oliver Giles 4 years ago
parent 4fb95fcb4f
commit 579c192d89

@ -253,7 +253,7 @@ const Charts = (() => {
}
});
c.jobCompleted = success => {
c.data.datasets[success ? 0 : 1].data[6]++;
c.data.datasets[success ? 1 : 0].data[6]++;
c.update();
}
return c;

Loading…
Cancel
Save