From 7660ca80bc461ec6a7555bbfbdae47c8b12fc224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 7 Nov 2022 16:49:19 +0100 Subject: [PATCH] :zap: Skip interim updates check --- packages/cli/src/workflows/workflows.services.ts | 14 +++++++------- .../integration/workflows.controller.ee.test.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cli/src/workflows/workflows.services.ts b/packages/cli/src/workflows/workflows.services.ts index e904299e4a99c..70dad8ba3430b 100644 --- a/packages/cli/src/workflows/workflows.services.ts +++ b/packages/cli/src/workflows/workflows.services.ts @@ -75,13 +75,13 @@ export class WorkflowsService { ); } - if (!forceSave && workflow.hash !== shared.workflow.hash) { - throw new ResponseHelper.ResponseError( - `Workflow ID ${workflowId} cannot be saved because it was changed by another user.`, - undefined, - 400, - ); - } + // if (!forceSave && workflow.hash !== shared.workflow.hash) { + // throw new ResponseHelper.ResponseError( + // `Workflow ID ${workflowId} cannot be saved because it was changed by another user.`, + // undefined, + // 400, + // ); + // } // check credentials for old format await WorkflowHelpers.replaceInvalidCredentials(workflow); diff --git a/packages/cli/test/integration/workflows.controller.ee.test.ts b/packages/cli/test/integration/workflows.controller.ee.test.ts index e6ada3aca0bbe..15c36b9f0bcb6 100644 --- a/packages/cli/test/integration/workflows.controller.ee.test.ts +++ b/packages/cli/test/integration/workflows.controller.ee.test.ts @@ -635,7 +635,7 @@ describe('PATCH /workflows/:id - validate credential permissions to user', () => }); }); -describe('PATCH /workflows/:id - validate interim updates', () => { +describe.skip('PATCH /workflows/:id - validate interim updates', () => { it('should block owner updating workflow nodes on interim update by member', async () => { const owner = await testDb.createUser({ globalRole: globalOwnerRole }); const member = await testDb.createUser({ globalRole: globalMemberRole });