Delete a WebChat side thread.
(self, thread_id: str)
| 703 | return result.scalar_one_or_none() |
| 704 | |
| 705 | async def delete_webchat_thread(self, thread_id: str) -> None: |
| 706 | """Delete a WebChat side thread.""" |
| 707 | async with self.get_db() as session: |
| 708 | session: AsyncSession |
| 709 | async with session.begin(): |
| 710 | await session.execute( |
| 711 | delete(WebChatThread).where( |
| 712 | col(WebChatThread.thread_id) == thread_id |
| 713 | ) |
| 714 | ) |
| 715 | |
| 716 | async def delete_webchat_threads_by_parent_session( |
| 717 | self, |