Skip to content

Commit 6f2454f

Browse files
committed
🐛 Fix: emit_event should be lazy by default
Signed-off-by: ff137 <[email protected]>
1 parent bb9d4f6 commit 6f2454f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

acapy_agent/protocols/issue_credential/v2_0/models/cred_ex_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async def emit_event(self, session: ProfileSession, payload: Optional[Any] = Non
207207
payload = V20CredExRecordWebhook(**payload)
208208
payload = payload.__dict__
209209

210-
await session.profile.notify(topic, payload)
210+
await session.emit_event(topic, payload)
211211

212212
@property
213213
def record_value(self) -> Mapping:

acapy_agent/protocols/present_proof/v2_0/models/pres_exchange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async def emit_event(self, session: ProfileSession, payload: Optional[Any] = Non
205205
payload = V20PresExRecordWebhook(**payload)
206206
payload = payload.__dict__
207207

208-
await session.profile.notify(topic, payload)
208+
await session.emit_event(topic, payload)
209209

210210
@property
211211
def record_value(self) -> Mapping:

0 commit comments

Comments
 (0)