소스 검색

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