fix(tasks): add db.refresh before _task_to_dict to prevent greenlet error
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-07 08:03:26 +02:00
parent 935946e6db
commit 05ac3d96cc
+1
View File
@@ -160,6 +160,7 @@ async def update_task(
task.contact_id = uuid.UUID(data["contact_id"]) if data["contact_id"] else None
await db.flush()
await db.refresh(task)
return _task_to_dict(task)