File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ export const ENDPOINTS = {
2323 PRIVATE_SERVICE_REVIEW_BY_ID : "/private/business-units/{businessUnitId}/reviews/{reviewId}" ,
2424 REPLY_TO_SERVICE_REVIEW : "/private/business-units/{businessUnitId}/reviews/{reviewId}/reply" ,
2525
26+ // Public Reviews (Product)
27+ PUBLIC_PRODUCT_REVIEWS : "/product-reviews/business-units/{businessUnitId}/reviews" ,
28+ PUBLIC_PRODUCT_REVIEW_BY_ID : "/product-reviews/{reviewId}" ,
29+
2630 // Private Reviews (Product)
2731 PRIVATE_PRODUCT_REVIEWS : "/private/product-reviews/business-units/{businessUnitId}/reviews" ,
2832 PRIVATE_PRODUCT_REVIEW_BY_ID : "/private/product-reviews/{reviewId}" ,
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ export default defineApp({
306306
307307 // Private Service Review methods
308308 async getServiceReviews ( options = { } ) {
309- const endpoint = buildUrl ( ENDPOINTS . PRIVATE_SERVICE_REVIEWS , {
309+ const endpoint = buildUrl ( ENDPOINTS . PUBLIC_REVIEWS , {
310310 businessUnitId : options . businessUnitId ,
311311 } ) ;
312312 return this . _getReviews ( {
@@ -370,7 +370,7 @@ export default defineApp({
370370
371371 // Product Review methods
372372 async getProductReviews ( options = { } ) {
373- const endpoint = buildUrl ( ENDPOINTS . PRIVATE_PRODUCT_REVIEWS , {
373+ const endpoint = buildUrl ( ENDPOINTS . PUBLIC_PRODUCT_REVIEWS , {
374374 businessUnitId : options . businessUnitId ,
375375 } ) ;
376376 return this . _getReviews ( {
You can’t perform that action at this time.
0 commit comments