fix(ai-assistant): create_model 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:52:55 +02:00
parent 1a00fe8e0b
commit 33162b5283
+2 -1
View File
@@ -184,8 +184,9 @@ async def create_model(
tenant_id=tenant_id,
)
db.add(model)
await db.commit()
await db.flush()
await db.refresh(model)
await db.commit()
return model_to_response(model)