mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 15:31:19 +01:00
Fix guest -> real account upgrade with account validity enabled (#6359)
This commit is contained in:
parent
6e1b40dc26
commit
745a48625d
2 changed files with 4 additions and 6 deletions
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,
|
expiration_ts,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._simple_insert_txn(
|
self._simple_upsert_txn(
|
||||||
txn,
|
txn,
|
||||||
"account_validity",
|
"account_validity",
|
||||||
values={
|
keyvalues={"user_id": user_id},
|
||||||
"user_id": user_id,
|
values={"expiration_ts_ms": expiration_ts, "email_sent": False},
|
||||||
"expiration_ts_ms": expiration_ts,
|
|
||||||
"email_sent": False,
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def start_profiling(self):
|
def start_profiling(self):
|
||||||
|
|
Loading…
Reference in a new issue