feat(trigger): add workSynchronously flag
This commit is contained in:
@@ -6,6 +6,7 @@ import defineTrigger from '../../../../helpers/define-trigger.js';
|
|||||||
export default defineTrigger({
|
export default defineTrigger({
|
||||||
name: 'Receive Call',
|
name: 'Receive Call',
|
||||||
key: 'receiveCall',
|
key: 'receiveCall',
|
||||||
|
workSynchronously: true,
|
||||||
type: 'webhook',
|
type: 'webhook',
|
||||||
description: 'Triggers when a new call is received.',
|
description: 'Triggers when a new call is received.',
|
||||||
arguments: [
|
arguments: [
|
||||||
|
|||||||
@@ -116,6 +116,10 @@ class Step extends Base {
|
|||||||
return `/webhooks/flows/${this.flowId}/sync`;
|
return `/webhooks/flows/${this.flowId}/sync`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (triggerCommand.workSynchronously) {
|
||||||
|
return `/webhooks/flows/${this.flowId}/sync`;
|
||||||
|
}
|
||||||
|
|
||||||
return `/webhooks/flows/${this.flowId}`;
|
return `/webhooks/flows/${this.flowId}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user