fix mariadb issue

This commit is contained in:
Mutasem 2022-08-04 16:28:47 +02:00
parent 59a5d808ce
commit a9e63b9923

View file

@ -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) {