* Get all messages in a thread
(threadId: string)
| 503 | * Get all messages in a thread |
| 504 | */ |
| 505 | async getThreadMessages(threadId: string): Promise<ThreadMessage[]> { |
| 506 | const result = await query<ThreadMessage>( |
| 507 | `SELECT * FROM addie_thread_messages |
| 508 | WHERE thread_id = $1 |
| 509 | ORDER BY sequence_number ASC`, |
| 510 | [threadId] |
| 511 | ); |
| 512 | return result.rows; |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Find a thread by looking up an email Message-ID in thread messages. |
no outgoing calls
no test coverage detected