mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-07 07:08:57 +01:00
Remove spurious txn
This commit is contained in:
parent
4adf93e0f7
commit
be3548f7e1
1 changed files with 0 additions and 9 deletions
|
@ -127,15 +127,6 @@ class RegistrationStore(SQLBaseStore):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if was_guest:
|
if was_guest:
|
||||||
txn.execute(
|
|
||||||
"UPDATE users SET"
|
|
||||||
" password_hash = ?,"
|
|
||||||
" upgrade_ts = ?,"
|
|
||||||
" is_guest = ?,"
|
|
||||||
" admin = ?"
|
|
||||||
" WHERE name = ?",
|
|
||||||
(password_hash, now, 1 if make_guest else 0, admin, user_id,)
|
|
||||||
)
|
|
||||||
self._simple_update_one_txn(
|
self._simple_update_one_txn(
|
||||||
txn,
|
txn,
|
||||||
"users",
|
"users",
|
||||||
|
|
Loading…
Reference in a new issue