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:
Tomi Turtiainen
2024-01-05 10:36:59 +02:00
committed by GitHub
parent 071e6d6b6e
commit 8a78ae1739
2 changed files with 20 additions and 1 deletions

View File

@@ -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);