From 86614e251f25ef3f1741b4cd9c9d60ee9e754862 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Fri, 15 May 2020 16:17:12 +0100 Subject: [PATCH] Fix a small typo in the arguments of simple_update in update_remote_profile_cache (#7511) --- changelog.d/7511.bugfix | 1 + synapse/storage/data_stores/main/profile.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/7511.bugfix diff --git a/changelog.d/7511.bugfix b/changelog.d/7511.bugfix new file mode 100644 index 000000000..cf8bc69c6 --- /dev/null +++ b/changelog.d/7511.bugfix @@ -0,0 +1 @@ +Fix a long-standing bug that broke the update remote profile background process. diff --git a/synapse/storage/data_stores/main/profile.py b/synapse/storage/data_stores/main/profile.py index 2b52cf9c1..bfc9369f0 100644 --- a/synapse/storage/data_stores/main/profile.py +++ b/synapse/storage/data_stores/main/profile.py @@ -110,7 +110,7 @@ class ProfileStore(ProfileWorkerStore): return self.db.simple_update( table="remote_profile_cache", keyvalues={"user_id": user_id}, - values={ + updatevalues={ "displayname": displayname, "avatar_url": avatar_url, "last_check": self._clock.time_msec(),