fix email update in AuthsTable model

This commit is contained in:
Peter De-Ath 2024-07-07 22:07:12 +01:00
parent d51e866505
commit f971ba0c0b

View File

@ -182,6 +182,7 @@ class AuthsTable:
with get_db() as db:
result = db.query(Auth).filter_by(id=id).update({"email": email})
db.commit()
return True if result == 1 else False
except:
return False