mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix guest -> real account upgrade with account validity enabled (#6359)
This commit is contained in:
parent
6e1b40dc26
commit
745a48625d
1
changelog.d/6359.bugfix
Normal file
1
changelog.d/6359.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix bug where upgrading a guest account to a full user would fail when account validity is enabled.
|
@ -361,14 +361,11 @@ class SQLBaseStore(object):
|
||||
expiration_ts,
|
||||
)
|
||||
|
||||
self._simple_insert_txn(
|
||||
self._simple_upsert_txn(
|
||||
txn,
|
||||
"account_validity",
|
||||
values={
|
||||
"user_id": user_id,
|
||||
"expiration_ts_ms": expiration_ts,
|
||||
"email_sent": False,
|
||||
},
|
||||
keyvalues={"user_id": user_id},
|
||||
values={"expiration_ts_ms": expiration_ts, "email_sent": False},
|
||||
)
|
||||
|
||||
def start_profiling(self):
|
||||
|
Loading…
Reference in New Issue
Block a user