diff options
author | reivilibre <oliverw@matrix.org> | 2022-01-21 08:38:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 08:38:36 +0000 |
commit | 4c2096599c9780290703e14df63963e77d058dda (patch) | |
tree | 3dfd85174b46639a2dc7675c9ae53ce63096e2e2 /synapse/rest | |
parent | Make `get_account_data_for_room_and_type` a tree cache (#11789) (diff) | |
download | synapse-4c2096599c9780290703e14df63963e77d058dda.tar.xz |
Make the `get_global_account_data_by_type_for_user` cache be a tree-cache whose key is prefixed with the user ID (#11788)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/account_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/account_data.py b/synapse/rest/client/account_data.py index d1badbdf3b..58b8adbd32 100644 --- a/synapse/rest/client/account_data.py +++ b/synapse/rest/client/account_data.py @@ -66,7 +66,7 @@ class AccountDataServlet(RestServlet): raise AuthError(403, "Cannot get account data for other users.") event = await self.store.get_global_account_data_by_type_for_user( - account_data_type, user_id + user_id, account_data_type ) if event is None: |