Skip to content

Commit 34b212f

Browse files
committed
comments
1 parent a57fafd commit 34b212f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

components/trustpilot/actions/fetch-product-reviews/fetch-product-reviews.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import trustpilot from "../../trustpilot.app.mjs";
33
export default {
44
key: "trustpilot-fetch-product-reviews",
55
name: "Fetch Product Reviews",
6-
description: "Retrieves a list of product reviews for a specific business unit on Trustpilot. This action enables you to fetch multiple product reviews with powerful filtering options including star ratings, language, tags, and sorting preferences. Ideal for monitoring product feedback trends, generating reports, analyzing customer sentiment across your product catalog, or building review dashboards. Supports pagination for handling large review volumes. [See the documentation](https://developers.trustpilot.com/product-reviews-api#get-private-product-reviews)",
6+
description: "Retrieves a list of product reviews for a specific business unit.",
77
version: "0.1.0",
88
type: "action",
99
props: {

components/trustpilot/actions/reply-to-service-review/reply-to-service-review.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
export default {
1111
key: "trustpilot-reply-to-service-review",
1212
name: "Reply to Service Review",
13-
description: "Reply to a service review on Trustpilot. Posts a public reply on behalf of your business using the private reviews API. [See the documentation](https://developers.trustpilot.com/private-reviews-api#reply-to-review)",
13+
description: "Reply to a service review on Trustpilot.",
1414
version: "0.1.0",
1515
type: "action",
1616
props: {

components/trustpilot/common/api-client.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export async function makeRequest(trustpilotApp, {
6363
params,
6464
data,
6565
timeout,
66+
additionalHeaders,
6667
...args,
6768
}, retries - 1);
6869
}

components/trustpilot/sources/new-product-reviews/new-product-reviews.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export default {
3232
},
3333
generateSummary(review) {
3434
const stars = review.stars || "N/A";
35-
const consumerName = review.consumer?.displayName || "Anonymous";
36-
const productName = review.product?.title || "Unknown Product";
37-
const businessUnit = review.businessUnit?.displayName || this.businessUnitId || "Unknown";
35+
const consumerName = review.consumer?.name || "Anonymous";
36+
const productName = review.product?.name || "Unknown Product";
37+
const businessUnit = this.businessUnitId || "Unknown";
3838

3939
return `New ${stars}-star product review by ${consumerName} for "${productName}" (${businessUnit})`;
4040
},

0 commit comments

Comments
 (0)