From 6a61539df58ff4510ec361bf59492b91ef314ef8 Mon Sep 17 00:00:00 2001 From: Ian Costanzo Date: Thu, 22 Aug 2024 08:53:09 -0700 Subject: [PATCH] Fix logic to send verbose webhooks Signed-off-by: Ian Costanzo Signed-off-by: jamshale --- .../protocols/issue_credential/v2_0/models/cred_ex_record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py b/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py index 15ab3cce7b..7e853f36d4 100644 --- a/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py +++ b/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py @@ -201,7 +201,7 @@ async def emit_event(self, session: ProfileSession, payload: Any = None): # serialize payload before checking for webhook contents if not payload: payload = self.serialize() - else: + if not session.profile.settings.get("debug.webhooks"): payload = V20CredExRecordWebhook(**payload) payload = payload.__dict__