mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
done
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user