Skip to content

Commit

Permalink
Add hotfix to QA to fix bug in delivery locations
Browse files Browse the repository at this point in the history
  • Loading branch information
nonword committed Nov 4, 2024
1 parent 586a12f commit a7b3be6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/jsonld_serializers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit a7b3be6

Please sign in to comment.