refac
This commit is contained in:
1 parent
68d775e1ab
commit
d3ef3a7494
3 files changed
+6
-12
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user