mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
@@ -20,9 +20,6 @@ export class AddNodeIds1658932910559 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = workflow.nodes;
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => {
|
||||
if (!node.id) {
|
||||
@@ -58,9 +55,6 @@ export class AddNodeIds1658932910559 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = workflow.nodes;
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => delete node.id );
|
||||
|
||||
|
||||
@@ -26,10 +26,6 @@ export class AddNodeIds1658932090381 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = workflow.nodes;
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => {
|
||||
if (!node.id) {
|
||||
@@ -71,10 +67,6 @@ export class AddNodeIds1658932090381 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = workflow.nodes;
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => delete node.id );
|
||||
|
||||
|
||||
@@ -24,10 +24,6 @@ export class AddNodeIds1658930531669 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = JSON.parse(workflow.nodes);
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
nodes.forEach((node: INode) => {
|
||||
if (!node.id) {
|
||||
node.id = uuid();
|
||||
@@ -65,10 +61,6 @@ export class AddNodeIds1658930531669 implements MigrationInterface {
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = JSON.parse(workflow.nodes);
|
||||
if (!Array.isArray(nodes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => delete node.id );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user