this.responses.get(uuid)?.responsesReceived <= this.responses.get(uuid)?.responsesExpected
) {
this.responses.get(uuid).responsesReceived++;
- this.responses.get(uuid).responses.push(responsePayload);
+ this.responses.get(uuid)?.responses.push(responsePayload);
}
if (
this.responses.get(uuid)?.responsesReceived === this.responses.get(uuid)?.responsesExpected
return hashId;
}
})
- .filter(hashId => hashId !== undefined),
+ .filter((hashId) => hashId !== undefined),
...(responsesStatus === ResponseStatus.FAILURE && {
hashIdsFailed: this.responses
.get(uuid)
return hashId;
}
})
- .filter(hashId => hashId !== undefined),
+ .filter((hashId) => hashId !== undefined),
}),
...(responsesStatus === ResponseStatus.FAILURE && {
responsesFailed: this.responses
.get(uuid)
- ?.responses.map(response => {
+ ?.responses.map((response) => {
if (response.status === ResponseStatus.FAILURE) {
return response;
}
})
- .filter(response => response !== undefined),
+ .filter((response) => response !== undefined),
}),
};
}