mirror of https://github.com/langgenius/dify.git
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.
This commit is contained in:
parent
46e7e99c5a
commit
429cd05a0f
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue