auto-sync: 2026-05-18 13:04:37
This commit is contained in:
+1
-11
@@ -171,17 +171,7 @@ async def update_mail(mail_id: str, body: Dict[str, Any]):
|
||||
if task.status not in ("done", "cancelled"):
|
||||
bb.update_task_status(mail_id, "done", agent="mail-api")
|
||||
|
||||
# 写回 must_haves
|
||||
conn = bb._conn()
|
||||
try:
|
||||
conn.execute("BEGIN IMMEDIATE")
|
||||
conn.execute(
|
||||
"UPDATE tasks SET must_haves=?, updated_at=datetime('now') WHERE id=?",
|
||||
(json.dumps(meta), mail_id),
|
||||
)
|
||||
conn.commit()
|
||||
finally:
|
||||
conn.close()
|
||||
bb.update_must_haves(mail_id, json.dumps(meta))
|
||||
|
||||
return {"ok": True}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user