From 9931ccef1eb6448ea8df7949ca407acb040e428f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 10 Jun 2025 16:20:57 +0400 Subject: [PATCH] refac --- backend/open_webui/models/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/models/users.py b/backend/open_webui/models/users.py index a5dd9467b..00d504088 100644 --- a/backend/open_webui/models/users.py +++ b/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})