(aiChatId: string)
| 556 | } |
| 557 | |
| 558 | getAIChat(aiChatId: string): AIChat | null { |
| 559 | const db = this.getDb() |
| 560 | const row = db |
| 561 | .prepare( |
| 562 | `SELECT id, session_id as sessionId, title, assistant_id as assistantId, |
| 563 | active_message_id as activeMessageId, |
| 564 | created_at as createdAt, updated_at as updatedAt |
| 565 | FROM ai_chat WHERE id = ?` |
| 566 | ) |
| 567 | .get(aiChatId) as AIChat | undefined |
| 568 | return row || null |
| 569 | } |
| 570 | |
| 571 | updateAIChatTitle(aiChatId: string, title: string): boolean { |
| 572 | const db = this.getDb() |
no test coverage detected