From 05f250b4cbcb5a0a2e0e54a6167db45497d1f453 Mon Sep 17 00:00:00 2001 From: klu909 <55161078+klu909@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:16:40 -0800 Subject: [PATCH] fix: use template id to list pipeline template versions (#607) --- lib/pipelineTemplateVersionFactory.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pipelineTemplateVersionFactory.js b/lib/pipelineTemplateVersionFactory.js index 668b3d8b..4ce4dd02 100644 --- a/lib/pipelineTemplateVersionFactory.js +++ b/lib/pipelineTemplateVersionFactory.js @@ -162,9 +162,11 @@ class PipelineTemplateVersionFactory extends BaseFactory { return []; } - config.params.templateId = pipelineTemplateMeta.id; - - return super.list(config); + return super.list({ + params: { + templateId: pipelineTemplateMeta.id + } + }); } /**