feat(trigger): add workSynchronously flag
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user