From cb7ccea6e25d89d66dc0f232538416dc7554ec07 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 22 Jul 2024 16:42:38 +0300 Subject: [PATCH] fix --- server/promptadmin/api/routers/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/promptadmin/api/routers/prompts.py b/server/promptadmin/api/routers/prompts.py index a0d19ba..de0dbc1 100644 --- a/server/promptadmin/api/routers/prompts.py +++ b/server/promptadmin/api/routers/prompts.py @@ -69,7 +69,7 @@ async def load_mapping(mapping: Mapping) -> list[Prompt]: @router.post('/save') -async def save(prompt: Prompt, user_data=UserDependsAnnotated()): +async def save(prompt: Prompt, user_data: UserDependsAnnotated): mapping = await mapping_service.find_by_table_field(prompt.table, prompt.field) conn = await asyncpg.connect(SETTINGS.connections[mapping.connection_name]) await prompt_audit_service.save(