Skip to content
Snippets Groups Projects
Commit 028490af authored by David Baker's avatar David Baker
Browse files

Fix error on deleting users pending deactivation

Use simple_delete instead of simple_delete_one as commented
parent c7f6b420
No related branches found
No related tags found
No related merge requests found
...@@ -623,7 +623,9 @@ class RegistrationStore(RegistrationWorkerStore, ...@@ -623,7 +623,9 @@ class RegistrationStore(RegistrationWorkerStore,
Removes the given user to the table of users who need to be parted from all the Removes the given user to the table of users who need to be parted from all the
rooms they're in, effectively marking that user as fully deactivated. rooms they're in, effectively marking that user as fully deactivated.
""" """
return self._simple_delete_one( # XXX: This should be simple_delete_one but we failed to put a unique index on
# the table, so somehow duplicate entries have ended up in it.
return self._simple_delete(
"users_pending_deactivation", "users_pending_deactivation",
keyvalues={ keyvalues={
"user_id": user_id, "user_id": user_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment