This commit is contained in:
Timothy J. Baek
2024-07-08 12:42:52 -07:00
parent 68d775e1ab
commit d3ef3a7494
3 changed files with 6 additions and 12 deletions

View File

@@ -248,9 +248,7 @@ class ChatTable:
def get_chat_list_by_chat_ids(
self, chat_ids: List[str], skip: int = 0, limit: int = 50
) -> List[ChatModel]:
with get_db() as db:
all_chats = (
db.query(Chat)
.filter(Chat.id.in_(chat_ids))