mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix mariadb issue
This commit is contained in:
parent
59a5d808ce
commit
a9e63b9923
|
@ -19,7 +19,11 @@ export class AddNodeIds1658932910559 implements MigrationInterface {
|
|||
// @ts-ignore
|
||||
await runChunked(queryRunner, workflowsQuery, (workflows) => {
|
||||
workflows.forEach(async (workflow) => {
|
||||
const nodes = workflow.nodes;
|
||||
let nodes = workflow.nodes;
|
||||
if (typeof nodes === 'string') { // mariadb
|
||||
nodes = JSON.parse(nodes);
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
nodes.forEach((node) => {
|
||||
if (!node.id) {
|
||||
|
|
Loading…
Reference in a new issue