Skip to content

Commit 4e3c47c

Browse files
committed
Fix pipeline2 serialization
1 parent 9742d9f commit 4e3c47c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/logic/api/pipeline2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ const { sendHttpRequest } = require('./helper');
44
const Pipeline = require('../entities/Pipeline2');
55

66
const _extractFieldsForPipelineEntity = pipeline => ({
7-
id: pipeline._id,
7+
id: pipeline.id,
88
name: pipeline.name,
9+
metadata: pipeline.metadata,
910
spec: pipeline.spec,
1011
});
1112

0 commit comments

Comments
 (0)