File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments