pyrofork: storage: mongo: fix derp

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-07-23 22:35:30 +07:00
parent 4bbbd5c460
commit defda31c28
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -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)