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

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,7 +3008,7 @@ class OrderProductReviewService {
3008
3008
  const productReview = await this.productReviewRepository
3009
3009
  .find({
3010
3010
  filters: {
3011
- orderId: order.id,
3011
+ orderId: { operator: Where.IN, value: [order.id, order.orderNumber] },
3012
3012
  productId: item.id,
3013
3013
  status: { operator: Where.ISNULL },
3014
3014
  },
@@ -3023,11 +3023,14 @@ class OrderProductReviewService {
3023
3023
  buildProductReview(order, item, review) {
3024
3024
  return {
3025
3025
  id: item.id,
3026
+ orderId: order.id,
3027
+ orderNumber: order.orderNumber,
3026
3028
  isEdition: false,
3027
3029
  name: item.name,
3028
3030
  image: item.image,
3029
3031
  deliveryDate: order.deliveredAt || null,
3030
3032
  evaluationInAnalysis: review ? true : false,
3033
+ rating: review ? review.rate : null,
3031
3034
  shopProductSlug: item.slug,
3032
3035
  };
3033
3036
  }