turns out foreach stops exceptions from propagating

This commit is contained in:
Miodec 2022-10-17 13:30:14 +02:00
parent 437614b20c
commit b13448ae7c

View file

@ -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;
}