From 429cd05a0f596ff5c2721ce778d180d727f0baee Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 13 Oct 2025 18:07:51 +0800 Subject: [PATCH] fix(trigger): serialize subscription model in trigger invocation - Updated the `PluginTriggerManager` to serialize the `subscription` parameter using `model_dump()` before passing it during trigger invocation. This change ensures that the subscription data is correctly formatted for processing. --- api/core/plugin/impl/trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/plugin/impl/trigger.py b/api/core/plugin/impl/trigger.py index fed377d84d..9122ba7072 100644 --- a/api/core/plugin/impl/trigger.py +++ b/api/core/plugin/impl/trigger.py @@ -106,7 +106,7 @@ class PluginTriggerManager(BasePluginClient): "event": event_name, "credentials": credentials, "credential_type": credential_type, - "subscription": subscription, + "subscription": subscription.model_dump(), "raw_http_request": binascii.hexlify(serialize_request(request)).decode(), "parameters": parameters, },