Skip to content

Commit

Permalink
fix mariadb issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mutdmour committed Aug 4, 2022
1 parent 59a5d80 commit a9e63b9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9e63b9

Please sign in to comment.