mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-04 12:34:53 +08:00
turns out foreach stops exceptions from propagating
This commit is contained in:
parent
437614b20c
commit
b13448ae7c
1 changed files with 2 additions and 2 deletions
|
@ -421,7 +421,7 @@ export async function checkIfTagPb(
|
|||
|
||||
const ret: string[] = [];
|
||||
|
||||
tagsToCheck.forEach(async (tag) => {
|
||||
for (const tag of tagsToCheck) {
|
||||
const tagPbs: MonkeyTypes.PersonalBests = tag.personalBests ?? {
|
||||
time: {},
|
||||
words: {},
|
||||
|
@ -438,7 +438,7 @@ export async function checkIfTagPb(
|
|||
{ $set: { "tags.$.personalBests": tagpb.personalBests } }
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue