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

Function restoreThread

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

Source from the content-addressed store, hash-verified

102}
103
104export function restoreThread(threadId: string) {
105 const db = getThreadStateDatabase()
106 db.prepare(
107 `
108 UPDATE threads
109 SET archived = 0, updated_at = CURRENT_TIMESTAMP
110 WHERE id = ?
111 `,
112 ).run(threadId)
113}
114
115export function deleteThreadRecord(threadId: string) {
116 const db = getThreadStateDatabase()

Callers 1

thread-actions.tsFile · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
runMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected