diff --git a/server/promptadmin/api/routers/prompts.py b/server/promptadmin/api/routers/prompts.py index a376787..a0d19ba 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(