mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: storage: mongo: fix derp
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
4bbbd5c460
commit
defda31c28
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class MongoStorage(Storage):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue