diff --git a/aries_cloudagent/config/argparse.py b/aries_cloudagent/config/argparse.py index 4b91b22aad..29ce270066 100644 --- a/aries_cloudagent/config/argparse.py +++ b/aries_cloudagent/config/argparse.py @@ -680,7 +680,7 @@ def add_arguments(self, parser: ArgumentParser): parser.add_argument( "--monitor-revocation-notification", action="store_true", - env_var="ACAPY_NOTIFY_REVOCATION", + env_var="ACAPY_MONITOR_REVOCATION_NOTIFICATION", help=( "Specifies that aca-py will emit webhooks on notification of " "revocation received." diff --git a/aries_cloudagent/protocols/coordinate_mediation/v1_0/routes.py b/aries_cloudagent/protocols/coordinate_mediation/v1_0/routes.py index 6740dce76b..3435174712 100644 --- a/aries_cloudagent/protocols/coordinate_mediation/v1_0/routes.py +++ b/aries_cloudagent/protocols/coordinate_mediation/v1_0/routes.py @@ -246,7 +246,8 @@ async def delete_mediation_request(request: web.BaseRequest): session, mediation_id ) result = mediation_record.serialize() - await mediation_record.delete_record(session) + async with context.profile.session() as session: + await mediation_record.delete_record(session) except StorageNotFoundError as err: raise web.HTTPNotFound(reason=err.roll_up) from err except (BaseModelError, StorageError) as err: