Skip to content

Commit

Permalink
[Verifed Reviews] - PDP (#416)
Browse files Browse the repository at this point in the history
* feat: add reviewCount in reviewRating

* chore: add comment

* Update verified-reviews/utils/client.ts

---------

Co-authored-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
gabrielMatosBoubee and mcandeia authored Feb 21, 2024
1 parent 0d3af5a commit c8bdea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions verified-reviews/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export const createClient = (params: ConfigVerifiedReviews | undefined) => {
reviewRating: {
"@type": "AggregateRating",
ratingValue: Number(item.rate),
// this api does not support multiple reviews
reviewCount: 1
},
}))
: [],
Expand Down

0 comments on commit c8bdea5

Please sign in to comment.