unnecessary catch (we want to be notified if the drop failed as it will cause duplication)

This commit is contained in:
Miodec 2023-06-21 13:04:59 +02:00
parent 66d87bf240
commit 782ac58907

View file

@ -132,9 +132,7 @@ export async function update(
const end2 = performance.now();
const start3 = performance.now();
leaderboardUpdating[`${language}_${mode}_${mode2}`] = true;
try {
await db.collection(`leaderboards.${language}.${mode}.${mode2}`).drop();
} catch (e) {}
await db.collection(`leaderboards.${language}.${mode}.${mode2}`).drop();
if (lb && lb.length !== 0) {
await db
.collection<MonkeyTypes.LeaderboardEntry>(