aboutsummaryrefslogtreecommitdiff
path: root/src/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.ts')
-rw-r--r--src/database.ts8
1 files changed, 8 insertions, 0 deletions
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<void> {
)
}
}
+
+ await memberLeaderboardsCollection.deleteMany(
+ { stats: {} }
+ )
+ await profileLeaderboardsCollection.deleteMany(
+ { stats: {} }
+ )
+
}
export let finishedCachingRawLeaderboards = false