We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b212f commit 76ed734Copy full SHA for 76ed734
components/trustpilot/sources/new-service-reviews/new-service-reviews.mjs
@@ -56,7 +56,12 @@ export default {
56
}
57
58
// Use the shared method from the app directly
59
- const result = await this.trustpilot.fetchServiceReviews(fetchParams);
+ let result = await this.trustpilot.fetchServiceReviews(fetchParams);
60
+
61
+ while (result.length === 100) {
62
+ fetchParams.page += 1;
63
+ result = result.concat(await this.trustpilot.fetchServiceReviews(fetchParams));
64
+ }
65
66
const reviews = result.reviews || [];
67
0 commit comments