(threadId: string)
| 102 | } |
| 103 | |
| 104 | export 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 | |
| 115 | export function deleteThreadRecord(threadId: string) { |
| 116 | const db = getThreadStateDatabase() |
no test coverage detected