feat(webhook/catch-raw-webhook): add sync support

This commit is contained in:
Ali BARIN
2024-02-23 16:19:26 +00:00
parent f6b2312c49
commit 7484bf7403
5 changed files with 137 additions and 1 deletions

View File

@@ -7,7 +7,20 @@ export default defineTrigger({
key: 'catchRawWebhook',
type: 'webhook',
showWebhookUrl: true,
description: 'Triggers when the webhook receives a request.',
description:
'Triggers in a synchronous way when the webhook receives a request.',
arguments: [
{
label: 'Wait until flow is done',
key: 'workSynchronously',
type: 'dropdown',
required: true,
options: [
{ label: 'Yes', value: true },
{ label: 'No', value: false },
],
},
],
async run($) {
const dataItem = {