feat: wrapper for custom actions

This commit is contained in:
karishmas6
2024-06-08 22:52:51 +05:30
parent 94e090ba02
commit 3cdd3bf534

View File

@@ -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);
}