MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / archiveThread

Function archiveThread

desktop/thread-state-db/thread-writes.ts:64–73  ·  view source on GitHub ↗
(threadId: string)

Source from the content-addressed store, hash-verified

62}
63
64export function archiveThread(threadId: string) {
65 const db = getThreadStateDatabase()
66 db.prepare(
67 `
68 UPDATE threads
69 SET archived = 1, updated_at = CURRENT_TIMESTAMP
70 WHERE id = ?
71 `,
72 ).run(threadId)
73}
74
75export function archiveThreads(threadIds: string[]) {
76 updateArchivedFlag(threadIds, true)

Callers 1

thread-actions.tsFile · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
runMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected