Skip to content

Commit

Permalink
pyrofork: storage: mongo: fix derp
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Jul 23, 2024
1 parent 875a941 commit 08442de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/storage/mongo_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def update_state(self, value: Tuple[int, int, int, int, int] = object):
return states if len(states) > 0 else None
else:
if isinstance(value, int):
await self._states.delete_one({'id': value})
await self._states.delete_one({'_id': value})
else:
await self._states.update_one({'_id': value[0]}, {'$set': {'pts': value[1], 'qts': value[2], 'date': value[3], 'seq': value[4]}}, upsert=True)

Expand Down

0 comments on commit 08442de

Please sign in to comment.