浏览代码

fix email update in AuthsTable model

Peter De-Ath 10 月之前
父节点
当前提交
f971ba0c0b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/apps/webui/models/auths.py

+ 1 - 0
backend/apps/webui/models/auths.py

@@ -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