Timothy Jaeryang Baek 4 luni în urmă
părinte
comite
9931ccef1e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      backend/open_webui/models/users.py

+ 1 - 1
backend/open_webui/models/users.py

@@ -370,7 +370,7 @@ class UsersTable:
         except Exception:
             return False
 
-    def update_user_api_key_by_id(self, id: str, api_key: str) -> str:
+    def update_user_api_key_by_id(self, id: str, api_key: str) -> bool:
         try:
             with get_db() as db:
                 result = db.query(User).filter_by(id=id).update({"api_key": api_key})