diff options
Diffstat (limited to 'build/database.js')
-rw-r--r-- | build/database.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/database.js b/build/database.js index c34222d..6edb29b 100644 --- a/build/database.js +++ b/build/database.js @@ -568,6 +568,8 @@ async function removeBadMemberLeaderboardAttributes() { await memberLeaderboardsCollection.updateMany(filter, { '$unset': unsetValue }); } } + await memberLeaderboardsCollection.deleteMany({ stats: {} }); + await profileLeaderboardsCollection.deleteMany({ stats: {} }); } exports.finishedCachingRawLeaderboards = false; /** Fetch all the leaderboards, used for caching. Don't call this often! */ |