feat(trigger): add workSynchronously flag

This commit is contained in:
Ali BARIN
2024-12-13 15:28:42 +00:00
parent bfcf54a26f
commit 0056940fa2
2 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import defineTrigger from '../../../../helpers/define-trigger.js';
export default defineTrigger({
name: 'Receive Call',
key: 'receiveCall',
workSynchronously: true,
type: 'webhook',
description: 'Triggers when a new call is received.',
arguments: [

View File

@@ -116,6 +116,10 @@ class Step extends Base {
return `/webhooks/flows/${this.flowId}/sync`;
}
if (triggerCommand.workSynchronously) {
return `/webhooks/flows/${this.flowId}/sync`;
}
return `/webhooks/flows/${this.flowId}`;
}