mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix mariadb issue
This commit is contained in:
@@ -19,7 +19,11 @@ export class AddNodeIds1658932910559 implements MigrationInterface {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||||
workflows.forEach(async (workflow) => {
|
workflows.forEach(async (workflow) => {
|
||||||
const nodes = workflow.nodes;
|
let nodes = workflow.nodes;
|
||||||
|
if (typeof nodes === 'string') { // mariadb
|
||||||
|
nodes = JSON.parse(nodes);
|
||||||
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
nodes.forEach((node) => {
|
nodes.forEach((node) => {
|
||||||
if (!node.id) {
|
if (!node.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user