Skip to content

Commit c2d5ffa

Browse files
committed
missed some $'s
1 parent acf2b0f commit c2d5ffa

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
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
@@ -64,7 +64,7 @@ export default {
6464

6565
try {
6666
// Use the shared method from the app
67-
const result = await this.trustpilot.fetchProductReviews({
67+
const result = await this.trustpilot.fetchProductReviews($, {
6868
businessUnitId,
6969
page,
7070
perPage,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default {
177177

178178
try {
179179
// Use the shared method from the app
180-
const result = await this.trustpilot.fetchServiceReviews({
180+
const result = await this.trustpilot.fetchServiceReviews($, {
181181
businessUnitId,
182182
stars,
183183
language,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
return `New ${stars}-star product review by ${consumerName} for "${productName}" (${businessUnit})`;
4040
},
4141
},
42-
async run() {
42+
async run({ $ }) {
4343
try {
4444
// Get the last review time for filtering new reviews
4545
const lastReviewTime = this._getLastReviewTime();
@@ -54,7 +54,7 @@ export default {
5454
};
5555

5656
// Use the shared method from the app directly
57-
const result = await this.trustpilot.fetchProductReviews(fetchParams);
57+
const result = await this.trustpilot.fetchProductReviews($, fetchParams);
5858

5959
const reviews = result.reviews || [];
6060

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
return `New ${stars}-star service review by ${consumerName} for ${businessUnit}`;
3939
},
4040
},
41-
async run() {
41+
async run({ $ }) {
4242
try {
4343
// Get the last review time for filtering new reviews
4444
const lastReviewTime = this._getLastReviewTime();
@@ -56,11 +56,11 @@ export default {
5656
}
5757

5858
// Use the shared method from the app directly
59-
let result = await this.trustpilot.fetchServiceReviews(fetchParams);
59+
let result = await this.trustpilot.fetchServiceReviews($, fetchParams);
6060

6161
while (result.reviews && result.reviews.length === 100) {
6262
fetchParams.page = (fetchParams.page || 1) + 1;
63-
const nextResult = await this.trustpilot.fetchServiceReviews(fetchParams);
63+
const nextResult = await this.trustpilot.fetchServiceReviews($, fetchParams);
6464
result.reviews = result.reviews.concat(nextResult.reviews || []);
6565
}
6666

0 commit comments

Comments
 (0)