mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 13:01:10 +08:00
using estimated document count instead of a deprecated function
This commit is contained in:
parent
d8de31409a
commit
f38733da10
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class LeaderboardsDAO {
|
|||
if (res)
|
||||
res.count = await mongoDB()
|
||||
.collection(`leaderboards.${language}.${mode}.${mode2}`)
|
||||
.count();
|
||||
.estimatedDocumentCount();
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue