diff --git a/bin/helpers/sync/syncSpecsLogs.js b/bin/helpers/sync/syncSpecsLogs.js index 03eafa97..5f93504f 100644 --- a/bin/helpers/sync/syncSpecsLogs.js +++ b/bin/helpers/sync/syncSpecsLogs.js @@ -196,8 +196,8 @@ let showSpecsStatus = (data, statusCode) => { // Below block is for printing build details, return if non 200 status code if ("buildData" in specData) { const buildDetails = specData.buildData; - const totalDuration = buildDetails.duration?.total_duration - const parallels = buildDetails.parallels + const totalDuration = (utils.isUndefined(buildDetails.duration)) ? "-" : buildDetails.duration.total_duration + const parallels = (utils.isUndefined(buildDetails.parallels)) ? "-" : buildDetails.parallels specSummary.duration = totalDuration; specSummary.parallels = parallels; } else {