Skip to content

Commit

Permalink
chore: fetching total trustpilot reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Jan 16, 2024
1 parent f3dd574 commit 9c83631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/trustpilot.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const fetchTrustpilotData = async () => {
stars: result.score?.stars || 0,
trustScore: result.score?.trustScore || 0,
numberOfReviews:
result.numberOfReviews?.usedForTrustScoreCalculation.toLocaleString() || '',
result.numberOfReviews?.total.toLocaleString() || '',
}

const fileContent = JSON.stringify(tpData,null,2)
Expand Down
2 changes: 1 addition & 1 deletion src/data/trustpilot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"stars": 4.5,
"trustScore": 4.6,
"numberOfReviews": "39,159"
"numberOfReviews": "30,000"
}

0 comments on commit 9c83631

Please sign in to comment.