mass assignmenmika wishlistdaki mesele
This commit is contained in:
parent
5645fdda71
commit
36c416c976
|
|
@ -7,6 +7,7 @@ use Sarga\API\Http\Resources\Checkout\CartResource;
|
|||
use Sarga\API\Http\Resources\Customer\WishListResource;
|
||||
use Sarga\Shop\Repositories\ProductRepository;
|
||||
use Webkul\Checkout\Facades\Cart;
|
||||
use Webkul\Product\Repositories\ProductFlatRepository;
|
||||
use Webkul\RestApi\Http\Controllers\V1\Shop\Customer\WishlistController;
|
||||
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ class Wishlists extends WishlistController
|
|||
]);
|
||||
}
|
||||
|
||||
$product = app(ProductRepository::class)->find($id);
|
||||
$product = app(ProductFlatRepository::class)->findOneBy(['product_id' => $id]);
|
||||
|
||||
$wishlistItem = $this->wishlistRepository->create([
|
||||
'channel_id' => core()->getCurrentChannel()->id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue