summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2020-09-22 19:19:01 +0200
committerGitHub <noreply@github.com>2020-09-22 18:19:01 +0100
commit8998217540bc41975e64e44c507632361ca95698 (patch)
treec704483d4369b4f684c5348b64847e3dc12e17c6 /synapse/storage
parentAdmin API for reported events (#8217) (diff)
downloadsynapse-8998217540bc41975e64e44c507632361ca95698.tar.xz
Fixed a bug with reactivating users with the admin API (#8362)
Fixes: #8359 

Trying to reactivate a user with the admin API (`PUT /_synapse/admin/v2/users/<user_name>`) causes an internal server error.

Seems to be a regression in #8033.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/databases/main/user_erasure_store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/user_erasure_store.py b/synapse/storage/databases/main/user_erasure_store.py
index 2f7c95fc74..f9575b1f1f 100644
--- a/synapse/storage/databases/main/user_erasure_store.py
+++ b/synapse/storage/databases/main/user_erasure_store.py
@@ -100,7 +100,7 @@ class UserErasureStore(UserErasureWorkerStore):
                 return
 
             # They are there, delete them.
-            self.simple_delete_one_txn(
+            self.db_pool.simple_delete_one_txn(
                 txn, "erased_users", keyvalues={"user_id": user_id}
             )