Timothy J. Baek 10 months ago
parent
commit
bd45b7a04b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      backend/apps/webui/models/functions.py

+ 1 - 2
backend/apps/webui/models/functions.py

@@ -214,8 +214,7 @@ class FunctionsTable:
             user_settings["functions"]["valves"][id] = valves
 
             # Update the user settings in the database
-            query = Users.update_user_by_id(user_id, {"settings": user_settings})
-            query.execute()
+            Users.update_user_by_id(user_id, {"settings": user_settings})
 
             return user_settings["functions"]["valves"][id]
         except Exception as e: