From a7b3be667cfc4107ba170cabc4288df234081560 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 4 Nov 2024 10:28:09 -0500 Subject: [PATCH] Add hotfix to QA to fix bug in delivery locations --- lib/jsonld_serializers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/jsonld_serializers.js b/lib/jsonld_serializers.js index f0a24f5a..6e743478 100644 --- a/lib/jsonld_serializers.js +++ b/lib/jsonld_serializers.js @@ -395,8 +395,10 @@ class ItemResultsSerializer extends JsonLdListSerializer { return `resources:${result.uri}` } - static serialize (items, opts) { - const results = items.map((i) => ItemResourceSerializer.serialize(i)) + static async serialize (items, opts) { + const results = await Promise.all( + items.map((i) => ItemResourceSerializer.serialize(i)) + ) return (new ItemResultsSerializer(results, opts)).format() } }