Fix big with rejecting promises upon error
parent
26941e994f
commit
6add06db44
|
@ -100,7 +100,7 @@ async function batchedGetPublicGroups(matrixClient) {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Propagate the same error to all usersInFlight
|
// Propagate the same error to all usersInFlight
|
||||||
usersInFlight.forEach((userId) => {
|
usersInFlight.forEach((userId) => {
|
||||||
usersPending[userId].prom.reject(err);
|
usersPending[userId].reject(err);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue