(threadId: string)
| 62 | } |
| 63 | |
| 64 | export 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 | |
| 75 | export function archiveThreads(threadIds: string[]) { |
| 76 | updateArchivedFlag(threadIds, true) |
no test coverage detected