refactor(api): isolate native webhook runtime (#45912)

Co-authored-by: Stream <Stream_2@qq.com>
This commit is contained in:
非法操作andStream authored and GitHub committed 2026-11-10 05:08:50 +00:00
1 parent af37c00fb3
commit 9fbd9dcd33
22 files changed
+2500 -3931

No files matched your search

+2 -2
View File
@@ -139,13 +139,13 @@ class WebhookTriggerDebugEventPoller(TriggerDebugEventPoller):
if not webhook_event:
return None
from services.trigger.webhook_service import WebhookService
from services.trigger.webhook_service import build_webhook_workflow_inputs
payload = webhook_event.payload or {}
workflow_inputs = payload.get("inputs")
if workflow_inputs is None:
webhook_data = payload.get("webhook_data", {})
workflow_inputs = WebhookService.build_workflow_inputs(webhook_data)
workflow_inputs = build_webhook_workflow_inputs(webhook_data)
workflow_args: Mapping[str, Any] = {
"inputs": workflow_inputs or {},