From db5ccd0e2ae98986e142d5bec3ec9a17a9781678 Mon Sep 17 00:00:00 2001 From: nangdypanhar <181545922+nangdypanhar@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:26:29 +0700 Subject: [PATCH] close #2118 Add place to place serializer --- .../v2/storefront/product_place_serializer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/serializers/spree_cm_commissioner/v2/storefront/product_place_serializer.rb b/app/serializers/spree_cm_commissioner/v2/storefront/product_place_serializer.rb index e16a046b0..9d0372200 100644 --- a/app/serializers/spree_cm_commissioner/v2/storefront/product_place_serializer.rb +++ b/app/serializers/spree_cm_commissioner/v2/storefront/product_place_serializer.rb @@ -2,7 +2,9 @@ module SpreeCmCommissioner module V2 module Storefront class ProductPlaceSerializer < BaseSerializer - attributes :place, :type, :checkinable_distance + attributes :type, :checkinable_distance + + has_one :place, serializer: Spree::V2::Storefront::PlaceSerializer end end end