From 840b68b11d17304a8f1fce9bd54efdd5cdc8fb90 Mon Sep 17 00:00:00 2001 From: Morgan Mccauley Date: Wed, 17 Jan 2024 09:07:04 +1300 Subject: [PATCH] fix: Ensure array is returned to `Promise.all` --- block-server/handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block-server/handler.js b/block-server/handler.js index 02cd23bc3..1fda7b24c 100644 --- a/block-server/handler.js +++ b/block-server/handler.js @@ -44,7 +44,7 @@ const fetchStreamerMessage = async function(block_height, options) { }; } -const fetchShardsPromises = async function(block_height, number_of_shards, options) { +const fetchShardsPromises = function(block_height, number_of_shards, options) { return ([...Array(number_of_shards).keys()].map((shard_id) => fetchShardPromise(block_height, shard_id, options))); }