Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
update to newer API
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg committed Dec 6, 2019
1 parent 75d03d4 commit 0cc7bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/storage/data_stores/main/end_to_end_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def _get_e2e_cross_signing_keys_bulk_txn(
query_params.append(key_type)

txn.execute(sql, query_params)
rows = self.cursor_to_dict(txn)
rows = self.db.cursor_to_dict(txn)

devices = {}
for row in rows:
Expand Down Expand Up @@ -416,7 +416,7 @@ def _get_e2e_cross_signing_keys_bulk_txn(
query_params.extend(item)

txn.execute(sql, query_params)
rows = self.cursor_to_dict(txn)
rows = self.db.cursor_to_dict(txn)

# and add the signatures to the appropriate keys
for row in rows:
Expand Down Expand Up @@ -447,7 +447,7 @@ def get_e2e_cross_signing_keys_bulk(
cross-signing key was not found, their user ID will not be in
the dict.
"""
return self.runInteraction(
return self.db.runInteraction(
"get_e2e_cross_signing_key",
self._get_e2e_cross_signing_keys_bulk_txn,
users,
Expand Down

0 comments on commit 0cc7bd8

Please sign in to comment.