screwdriver-api 4.1.174 → 4.1.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "4.1.174",
3
+ "version": "4.1.175",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -270,6 +270,7 @@ async function createInternalBuild(config) {
270
270
  } else {
271
271
  job = await jobFactory.get(jobId);
272
272
  }
273
+
273
274
  const internalBuildConfig = {
274
275
  jobId: job.id,
275
276
  sha: event.sha,
@@ -409,11 +410,6 @@ function parseJobInfo({ joinObj = {}, current, nextJobName, nextPipelineId }) {
409
410
  * @return {Promise} All finished builds
410
411
  */
411
412
  async function getFinishedBuilds(event, buildFactory) {
412
- if (!event.parentEventId) {
413
- // FIXME: remove this flow to always use buildFactory.getLatestBuilds
414
- return event.getBuilds();
415
- }
416
-
417
413
  // FIXME: buildFactory.getLatestBuilds doesn't return build model
418
414
  const builds = await buildFactory.getLatestBuilds({ groupEventId: event.groupEventId });
419
415