(self, cid)
| 259 | return result.scalars().all() |
| 260 | |
| 261 | async def get_conversation_by_id(self, cid): |
| 262 | async with self.get_db() as session: |
| 263 | session: AsyncSession |
| 264 | query = select(ConversationV2).where(ConversationV2.conversation_id == cid) |
| 265 | result = await session.execute(query) |
| 266 | return result.scalar_one_or_none() |
| 267 | |
| 268 | async def get_all_conversations(self, page=1, page_size=20): |
| 269 | async with self.get_db() as session: |
no test coverage detected