MCPcopy
hub / github.com/codedogQBY/ReadAny / updateThreadTitle

Function updateThreadTitle

packages/core/src/db/thread-queries.ts:109–118  ·  view source on GitHub ↗
(id: string, title: string)

Source from the content-addressed store, hash-verified

107}
108
109export async function updateThreadTitle(id: string, title: string): Promise<void> {
110 const database = await getDB();
111 const deviceId = await getDeviceId();
112 const syncVersion = await nextSyncVersion(database, "threads");
113 const updatedAt = await nextUpdatedAt(database, "threads", id);
114 await database.execute(
115 "UPDATE threads SET title = ?, updated_at = ?, sync_version = ?, last_modified_by = ? WHERE id = ?",
116 [title, updatedAt, syncVersion, deviceId, id],
117 );
118}
119
120export async function deleteThread(id: string): Promise<void> {
121 const database = await getDB();

Callers 2

useStreamingChatFunction · 0.85

Calls 5

getDBFunction · 0.90
getDeviceIdFunction · 0.90
nextSyncVersionFunction · 0.90
nextUpdatedAtFunction · 0.90
executeMethod · 0.65

Tested by

no test coverage detected