mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-21 21:16:10 +08:00
unnecessary catch (we want to be notified if the drop failed as it will cause duplication)
This commit is contained in:
parent
66d87bf240
commit
782ac58907
1 changed files with 1 additions and 3 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Reference in a new issue