From 7b977804ef3fe33dcdc9aaec5eb46390804d4511 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 7 Jun 2024 23:56:12 +0530 Subject: [PATCH] feat: validate if pair w same where conditions is already present in workflow --- server/src/workflow-management/classes/Generator.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 889c5d04..51b13942 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -126,4 +126,14 @@ export class WorkflowGenerator { }; + private addPairToWorkflowAndNotifyClient = async(pair: WhereWhatPair, page: Page) => { + let matched = false; + // validate if a pair with the same where conditions is already present in the workflow + if (pair.where.selectors && pair.where.selectors[0]) { + + } + + }; + + }