From 7f262c9af2225e2211e643fb8257faeebd89b26a Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Tue, 23 Jun 2026 17:37:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(todos):=20=E5=9C=A8=20todos=20=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=20created=5Fby=5Fmessage=5Fid=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BB=A5=E6=94=AF=E6=8C=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/storage/mod.rs b/src/storage/mod.rs index 9637028..138a338 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -1493,8 +1493,8 @@ impl SessionStore { // Insert new todos for item in items { conn.execute( - "INSERT OR REPLACE INTO todos (id, scope_key, session_id, topic_id, content, status, priority, created_at, updated_at) - VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9)", + "INSERT OR REPLACE INTO todos (id, scope_key, session_id, topic_id, content, status, priority, created_at, updated_at, created_by_message_id) + VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10)", params![ item.id, scope_key, @@ -1505,6 +1505,7 @@ impl SessionStore { item.priority, item.created_at, now, + item.created_by_message_id, ], )?; }