remove admin_locale

This commit is contained in:
merdan 2022-04-14 11:29:09 +05:00
parent b4cb3083c8
commit ab4be4e238
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class IntegrationController extends Controller
return response()->json(['errors'=>$e->getMessage()],400);
}
if(! $product = $this->productRepository->findOneByField('sku',$data['sku'])){
if(! $product = $this->productRepository->findOneByField('sku',$data['product_group_id'])){
return response()->json(['success'=> false,'message' => 'product not found'],400);
}

View File

@ -339,7 +339,7 @@ class ProductRepository extends WProductRepository
$parentProduct->categories()->attach($data['categories']);
}
if($data['vendor'] && $seller = $this->vendorRepository->findOneByField('shop_title',$data['vendor'])){
if($data['vendor'] && $seller = $this->vendorRepository->findOneByField('url',$data['vendor'])){
$this->createSellerProduct($parentProduct, $seller->id);
}