mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
done
This commit is contained in:
parent
3ca9647215
commit
e59dd00c10
|
@ -31,6 +31,10 @@ export class WebhookModel1592445003908 implements MigrationInterface {
|
||||||
const data: IWebhookDb[] = [];
|
const data: IWebhookDb[] = [];
|
||||||
const nodeTypes = NodeTypes();
|
const nodeTypes = NodeTypes();
|
||||||
for (const workflow of workflows) {
|
for (const workflow of workflows) {
|
||||||
|
workflow.nodes = JSON.parse(workflow.nodes as unknown as string);
|
||||||
|
workflow.connections = JSON.parse(workflow.connections as unknown as string);
|
||||||
|
workflow.staticData = JSON.parse(workflow.staticData as unknown as string);
|
||||||
|
workflow.settings = JSON.parse(workflow.settings as unknown as string);
|
||||||
const workflowInstance = new Workflow({ id: workflow.id as string, name: workflow.name, nodes: workflow.nodes, connections: workflow.connections, active: workflow.active, nodeTypes, staticData: workflow.staticData, settings: workflow.settings });
|
const workflowInstance = new Workflow({ id: workflow.id as string, name: workflow.name, nodes: workflow.nodes, connections: workflow.connections, active: workflow.active, nodeTypes, staticData: workflow.staticData, settings: workflow.settings });
|
||||||
const webhooks = WebhookHelpers.getWorkflowWebhooksBasic(workflowInstance);
|
const webhooks = WebhookHelpers.getWorkflowWebhooksBasic(workflowInstance);
|
||||||
for (const webhook of webhooks) {
|
for (const webhook of webhooks) {
|
||||||
|
|
Loading…
Reference in a new issue