mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 12:29:59 -04:00
Remove more references to get_datastore
(#12067)
These have snuck in since #12031 was started. Also a couple of other cleanups while we're in the area.
This commit is contained in:
parent
e24ff8ebe3
commit
5b2b36809f
4 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ if TYPE_CHECKING:
|
|||
|
||||
class AccountHandler:
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
self._store = hs.get_datastore()
|
||||
self._main_store = hs.get_datastores().main
|
||||
self._is_mine = hs.is_mine
|
||||
self._federation_client = hs.get_federation_client()
|
||||
|
||||
|
@ -98,7 +98,7 @@ class AccountHandler:
|
|||
"""
|
||||
status = {"exists": False}
|
||||
|
||||
userinfo = await self._store.get_userinfo_by_id(user_id.to_string())
|
||||
userinfo = await self._main_store.get_userinfo_by_id(user_id.to_string())
|
||||
|
||||
if userinfo is not None:
|
||||
status = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue