forked from MirrorHub/synapse
Fix error on deleting users pending deactivation
Use simple_delete instead of simple_delete_one as commented
This commit is contained in:
parent
c7f6b420ae
commit
028490afd4
1 changed files with 3 additions and 1 deletions
|
@ -623,7 +623,9 @@ class RegistrationStore(RegistrationWorkerStore,
|
|||
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.
|
||||
"""
|
||||
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",
|
||||
keyvalues={
|
||||
"user_id": user_id,
|
||||
|
|
Loading…
Reference in a new issue