From ecf3488af7d875162575fa7b3a06856a5b316cf3 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 23 Oct 2024 19:56:25 +0300 Subject: [PATCH] Fix save template --- server/promptadmin_server/api/routers/vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/promptadmin_server/api/routers/vars.py b/server/promptadmin_server/api/routers/vars.py index ddd1921..de2f560 100644 --- a/server/promptadmin_server/api/routers/vars.py +++ b/server/promptadmin_server/api/routers/vars.py @@ -51,5 +51,5 @@ async def remove(var_key_dto: VarKeyDto, user_data: UserDependsAnnotated): @router.post("/change") async def change(var_dto: VarDto, user_data: UserDependsAnnotated): return await permission_var_service.change( - var_dto.project, var_dto.key, var_dto.project, user_data + var_dto.project, var_dto.key, var_dto.value, user_data )