mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Update mongo.py (#857)
TypeError: to_list() missing 1 required positional argument: 'length'
This commit is contained in:
parent
a852b95596
commit
016a8d3c6c
1 changed files with 1 additions and 1 deletions
|
|
@ -213,5 +213,5 @@ class MongoStorage(BaseStorage):
|
|||
:return: list of tuples where first element is chat id and second is user id
|
||||
"""
|
||||
db = await self.get_db()
|
||||
items = await db[STATE].find().to_list()
|
||||
items = await db[STATE].find().to_list(length=None)
|
||||
return [(int(item['chat']), int(item['user'])) for item in items]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue