Fix guest -> real account upgrade with account validity enabled (#6359)
This commit is contained in:
parent
6e1b40dc26
commit
745a48625d
|
@ -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 New Issue