screwdriver-api 4.1.294 → 4.1.296

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.294",
3
+ "version": "4.1.296",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ const boom = require('@hapi/boom');
4
4
  const hoek = require('@hapi/hoek');
5
5
  const schema = require('screwdriver-data-schema');
6
6
  const joi = require('joi');
7
- const idSchema = schema.models.job.base.extract('id');
7
+ const idSchema = schema.models.build.base.extract('id');
8
8
  const { getScmUri, getUserPermissions } = require('../helper');
9
9
 
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  const boom = require('@hapi/boom');
4
4
  const joi = require('joi');
5
5
  const schema = require('screwdriver-data-schema');
6
- const idSchema = schema.models.job.base.extract('id');
6
+ const idSchema = schema.models.pipeline.base.extract('id');
7
7
  const nameSchema = schema.models.job.base.extract('name');
8
8
  const statusSchema = schema.models.build.base.extract('status');
9
9