* Mark thread as reviewed
(
threadId: string,
reviewedBy: string,
notes?: string
)
| 367 | * Mark thread as reviewed |
| 368 | */ |
| 369 | async reviewThread( |
| 370 | threadId: string, |
| 371 | reviewedBy: string, |
| 372 | notes?: string |
| 373 | ): Promise<void> { |
| 374 | await query( |
| 375 | `UPDATE addie_threads |
| 376 | SET reviewed = TRUE, reviewed_by = $2, reviewed_at = NOW(), review_notes = $3, updated_at = NOW() |
| 377 | WHERE thread_id = $1`, |
| 378 | [threadId, reviewedBy, notes || null] |
| 379 | ); |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Flag a thread |
no test coverage detected