fix(ai-assistant): create_provider flush vor refresh statt commit
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user