Skip to content

Commit

Permalink
fix save prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixNazarov committed Aug 15, 2024
1 parent 1a6f19d commit 02f55ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async def load(connection_name: str, field: str, table: str, field_name: str, na
return row[0].get(field, '')

async def save(self, prompt: Prompt, user_data: UserData):
mapping = await self.mapping_service.find_by_table_field(prompt.table, prompt.field)
mapping = await self.mapping_service.find_by_id(prompt.mapping_id)
conn = await asyncpg.connect(SETTINGS.connections[mapping.connection_name])
await self.prompt_audit_service.save(
PromptAudit(
Expand Down

0 comments on commit 02f55ab

Please sign in to comment.