fix(core): fix workflow hasing for MySQL (#4491)

* 🐛 Alphabetize node keys

* 🔥 Remove excess braces
This commit is contained in:
Iván Ovejero
2022-11-01 13:51:13 +01:00
committed by GitHub
parent e1a3f56651
commit 2b5613ed68
2 changed files with 15 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ import { SharedWorkflow } from './SharedWorkflow';
import { objectRetriever, sqlite } from '../utils/transformers';
import { AbstractEntity, jsonColumnType } from './AbstractEntity';
import type { IWorkflowDb } from '../../Interfaces';
import { alphabetizeKeys } from '../../utils';
@Entity()
export class WorkflowEntity extends AbstractEntity implements IWorkflowDb {
@@ -103,7 +104,7 @@ export class WorkflowEntity extends AbstractEntity implements IWorkflowDb {
const state = JSON.stringify({
name,
active,
nodes,
nodes: nodes ? nodes.map(alphabetizeKeys) : [],
connections,
settings,
staticData,