fix: Add template id to workflows created from templates (no-changelog) (#8226)
In #8088 template ID was added to workflow metadata, but it was missing from workflows that were created using the template credential setup. This fixes that.
This commit is contained in:
@@ -37,7 +37,10 @@ export async function createWorkflowFromTemplate(opts: {
|
||||
nodes,
|
||||
connections,
|
||||
active: false,
|
||||
// Ignored: pinData, settings, tags, versionId, meta
|
||||
meta: {
|
||||
templateId: template.id.toString(),
|
||||
},
|
||||
// Ignored: pinData, settings, tags, versionId
|
||||
};
|
||||
|
||||
const createdWorkflow = await workflowsStore.createNewWorkflow(workflowToCreate);
|
||||
|
||||
Reference in New Issue
Block a user