Skip to content

Commit

Permalink
Merge pull request #1902 from sicpa-dlab/fix/manual-update-keylist-route
Browse files Browse the repository at this point in the history
fix: update RouteManager methods use to pass profile as parameter
  • Loading branch information
dbluhm authored Aug 18, 2022
2 parents 63f0a74 + 17f0828 commit ebead04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,13 @@ async def update_keylist_for_connection(request: web.BaseRequest):
async with context.session() as session:
connection_record = await ConnRecord.retrieve_by_id(session, connection_id)
mediation_record = await route_manager.mediation_record_for_connection(
connection_record, mediation_id, or_default=True
context.profile, connection_record, mediation_id, or_default=True
)

# MediationRecord is permitted to be None; route manager will
# ensure the correct mediator is notified.
keylist_update = await route_manager.route_connection(
connection_record, mediation_record
context.profile, connection_record, mediation_record
)

results = keylist_update.serialize() if keylist_update else {}
Expand Down

0 comments on commit ebead04

Please sign in to comment.