fix(ai-assistant): create_model 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:
@@ -184,8 +184,9 @@ async def create_model(
|
|||||||
tenant_id=tenant_id,
|
tenant_id=tenant_id,
|
||||||
)
|
)
|
||||||
db.add(model)
|
db.add(model)
|
||||||
await db.commit()
|
await db.flush()
|
||||||
await db.refresh(model)
|
await db.refresh(model)
|
||||||
|
await db.commit()
|
||||||
return model_to_response(model)
|
return model_to_response(model)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user