This commit is contained in:
Timothy Jaeryang Baek 2025-06-10 16:20:57 +04:00
parent 3e81705dd3
commit 9931ccef1e

View File

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