app/Jobs/ImportProfession.php: in processItems() don't check for external_id when upserting items (as that is not guaranteed to be unique)
This commit is contained in:
parent
8f6691b1fe
commit
16e84fd316
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class ImportProfession implements ShouldQueue
|
|||
->sortBy('name')
|
||||
->toArray();
|
||||
|
||||
Item::upsert($items, [ 'external_id', 'name', 'slug' ], [ 'external_id', 'texture', 'color' ]);
|
||||
Item::upsert($items, [ 'name', 'slug' ], [ 'external_id', 'texture', 'color' ]);
|
||||
}
|
||||
|
||||
protected function getRecipe(Item $item, Profession $profession, $data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue