From 213f85dc683245af57825181605cc41afc721820 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 1 Jul 2021 17:05:13 -0500 Subject: delete players with no leaderboard positions from leaderboard collections --- src/database.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index 5d15954..d074c60 100644 --- a/src/database.ts +++ b/src/database.ts @@ -725,6 +725,14 @@ async function removeBadMemberLeaderboardAttributes(): Promise { ) } } + + await memberLeaderboardsCollection.deleteMany( + { stats: {} } + ) + await profileLeaderboardsCollection.deleteMany( + { stats: {} } + ) + } export let finishedCachingRawLeaderboards = false -- cgit