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, ], )?; }