feat: Implement webhook logic along with new entry typeform trigger

This commit is contained in:
Faruk AYDIN
2022-11-30 02:12:56 +01:00
committed by Ali BARIN
parent 397926f994
commit d83e8dabf8
13 changed files with 246 additions and 12 deletions
+7 -1
View File
@@ -23,7 +23,13 @@ export const processFlow = async (options: ProcessFlowOptions) => {
});
try {
await triggerCommand.run($);
if (triggerCommand.type === 'webhook' && !flow.active) {
await triggerCommand.testRun($);
} else if (triggerCommand.type === 'webhook' && flow.active) {
await triggerCommand.registerHook($);
} else {
await triggerCommand.run($);
}
} catch (error) {
if (error instanceof EarlyExitError === false) {
if (error instanceof HttpError) {