fix(ai-assistant): create_provider flush vor refresh statt commit
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-21 18:48:42 +02:00
parent 70da76c86b
commit 1a00fe8e0b
+2 -1
View File
@@ -96,8 +96,9 @@ async def create_provider(
tenant_id=tenant_id,
)
db.add(provider)
await db.commit()
await db.flush()
await db.refresh(provider)
await db.commit()
return provider_to_response(provider)