mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-11 03:29:17 +00:00
fix broken read all when there are objects with out scm object
This commit is contained in:
parent
5bd98c6719
commit
cf4ea019da
@ -30,7 +30,9 @@ module.exports = function(app) {
|
|||||||
// omit big fields not needed for list
|
// omit big fields not needed for list
|
||||||
_(builds).each(function(build) {
|
_(builds).each(function(build) {
|
||||||
delete build.stepTimings;
|
delete build.stepTimings;
|
||||||
delete build.scm.changes;
|
if (build.scm) {
|
||||||
|
delete build.scm.changes;
|
||||||
|
}
|
||||||
build.project = _(build.project).pick(
|
build.project = _(build.project).pick(
|
||||||
'name', 'scm', 'avgBuildDuration'
|
'name', 'scm', 'avgBuildDuration'
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user