Skip to content

Commit

Permalink
VCST-1918: XAPI only operates with approved reviews (#63)
Browse files Browse the repository at this point in the history
fix: Now XAPI only provides approved reviews otherwise anyone could get all the reviews at the Frontend
  • Loading branch information
Ljutyj authored Oct 7, 2024
1 parent 89798b3 commit 1bda82e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ protected virtual CustomerReviewSearchCriteria GetSearchCriteria(CustomerReviews
{
var criteria = request.GetSearchCriteria<CustomerReviewSearchCriteria>();
criteria.StoreId = request.StoreId;
criteria.EntityIds = new[] { request.EntityId };
criteria.EntityIds = [request.EntityId];
criteria.EntityType = request.EntityType;
// XAPI only operates with approved reviews
criteria.ReviewStatus = [CustomerReviewStatus.Approved];

if (!string.IsNullOrEmpty(request.Filter))
{
Expand Down

0 comments on commit 1bda82e

Please sign in to comment.