@infrab4a/connect-angular 5.3.1-beta.1 → 5.3.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3008,12 +3008,14 @@ class OrderProductReviewService {
3008
3008
  const productReview = await this.productReviewRepository
3009
3009
  .find({
3010
3010
  filters: {
3011
- orderId: { operator: Where.IN, value: [order.id, order.orderNumber] },
3011
+ orderId: { operator: Where.IN, value: [order.id, order.orderNumber].filter(Boolean) },
3012
3012
  productId: item.id,
3013
3013
  status: { operator: Where.ISNULL },
3014
3014
  },
3015
3015
  })
3016
3016
  .then((res) => res.data.at(0));
3017
+ if (productReview?.status != null)
3018
+ continue;
3017
3019
  products.push(this.buildProductReview(order, item, productReview));
3018
3020
  }
3019
3021
  }