@openstax/ts-utils 1.41.3 → 1.41.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,7 +85,7 @@ class RequestBatcher {
|
|
|
85
85
|
}
|
|
86
86
|
const batchResult = await batchResponse.json();
|
|
87
87
|
// Map responses back to original requests
|
|
88
|
-
const responseMap = new Map(batchResult.
|
|
88
|
+
const responseMap = new Map(batchResult.results.map(r => [r.id, r]));
|
|
89
89
|
requests.forEach(req => {
|
|
90
90
|
const batchResp = responseMap.get(req.id);
|
|
91
91
|
if (!batchResp) {
|