This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-24 17:04:07 -06:00
1 parent 62e7e0bc09
commit 9478c5e7ac
3 files changed
+47 -1

No files matched your search

+4 -1
View File
@@ -197,7 +197,10 @@ class AuthsTable:
with get_db_context(db) as db:
result = db.query(Auth).filter_by(id=id).update({"email": email})
db.commit()
return True if result == 1 else False
if result == 1:
Users.update_user_by_id(id, {"email": email}, db=db)
return True
return False
except Exception:
return False