* Get a thread by ID
(threadId: string)
| 325 | * Get a thread by ID |
| 326 | */ |
| 327 | async getThread(threadId: string): Promise<Thread | null> { |
| 328 | const result = await query<Thread>( |
| 329 | `SELECT * FROM addie_threads WHERE thread_id = $1`, |
| 330 | [threadId] |
| 331 | ); |
| 332 | return result.rows[0] || null; |
| 333 | } |
| 334 | |
| 335 | /** |
| 336 | * Get a thread by channel + external_id |
no outgoing calls
no test coverage detected