Skip to content

Commit 07b0c58

Browse files
committed
Add 'kind' to pipeline2
1 parent b7685ec commit 07b0c58

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/logic/api/pipeline2.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ const CFError = require('cf-errors'); // eslint-disable-line
33
const { sendHttpRequest } = require('./helper');
44
const Pipeline = require('../entities/Pipeline2');
55

6-
const _extractFieldsForPipelineEntity = pipeline => ({
7-
id: pipeline.id,
8-
metadata: pipeline.metadata,
9-
spec: pipeline.spec,
10-
});
6+
const _extractFieldsForPipelineEntity = pipeline => _.pick(pipeline, 'id', 'kind', 'metadata', 'spec');
117

128
const getAll = async () => {
139
const options = {

0 commit comments

Comments
 (0)