From 3cdd3bf53407e7ade90d032dfa0a84ca9f4013d5 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 22:52:51 +0530 Subject: [PATCH] feat: wrapper for custom actions --- server/src/browser-management/inputHandlers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/browser-management/inputHandlers.ts b/server/src/browser-management/inputHandlers.ts index 977f7d20..0ea938f0 100644 --- a/server/src/browser-management/inputHandlers.ts +++ b/server/src/browser-management/inputHandlers.ts @@ -64,3 +64,8 @@ interface CustomActionEventData { settings: any; } +const onGenerateAction = async (customActionEventData: CustomActionEventData) => { + logger.log('debug', `Generating ${customActionEventData.action} action emitted from client`); + await handleWrapper(handleGenerateAction, customActionEventData); +} +