Fix big with rejecting promises upon error

pull/21833/head
Luke Barnard 2017-09-18 15:11:49 +01:00
parent 26941e994f
commit 6add06db44
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ async function batchedGetPublicGroups(matrixClient) {
} catch (err) {
// Propagate the same error to all usersInFlight
usersInFlight.forEach((userId) => {
usersPending[userId].prom.reject(err);
usersPending[userId].reject(err);
});
return;
}