update rm deadcode
This commit is contained in:
@@ -10,8 +10,9 @@ class ProductCategoryWriter
|
||||
public function write(ProductCategoryData $data): void
|
||||
{
|
||||
DB::table('product_categories')->updateOrInsert(
|
||||
['legacy_id' => $data->legacyId],
|
||||
$data->adoptId ? ['id' => $data->adoptId] : ['legacy_id' => $data->legacyId],
|
||||
[
|
||||
'legacy_id' => $data->legacyId,
|
||||
'name' => $data->name,
|
||||
'slug' => $data->slug,
|
||||
'type' => $data->type,
|
||||
|
||||
Reference in New Issue
Block a user