mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix email update in AuthsTable model
This commit is contained in:
parent
d51e866505
commit
f971ba0c0b
1 changed files with 1 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ class AuthsTable:
|
||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
|
|
||||||
result = db.query(Auth).filter_by(id=id).update({"email": email})
|
result = db.query(Auth).filter_by(id=id).update({"email": email})
|
||||||
|
db.commit()
|
||||||
return True if result == 1 else False
|
return True if result == 1 else False
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue