Skip to content

Commit

Permalink
Notify before transaction
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Feb 28, 2024
1 parent 3c4a200 commit fda0d00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aries_cloudagent/revocation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ async def revoke_credential(
write_ledger=write_ledger,
endorser_did=endorser_did,
)
await notify_revocation_published_event(
self._profile, rev_reg_id, [cred_rev_id]
)
return rev_entry_resp
else:
async with self._profile.transaction() as txn:
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/revocation/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def notify_revocation_entry_endorsed_event(
"""Send notification for a revocation registry entry endorsement event."""
topic = f"{REVOCATION_EVENT_PREFIX}{REVOCATION_ENTRY_ENDORSED_EVENT}::{rev_reg_id}"
await profile.notify(topic, meta_data)
await notify_revocation_published_event(profile, rev_reg_id, revoked)
# await notify_revocation_published_event(profile, rev_reg_id, revoked)


async def notify_revocation_published_event(
Expand Down

0 comments on commit fda0d00

Please sign in to comment.