Skip to content

Commit c99925d

Browse files
Itai GendlerItai Gendler
authored andcommitted
Merge branch 'master' of github.com:codefresh-io/cli
2 parents 96561a6 + 07b0c58 commit c99925d

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)