mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Add the asset to the cache after creating it as well.
This commit is contained in:
parent
3b6f78f30c
commit
1e948eabc8
|
@ -568,7 +568,7 @@ class ObjectImportCommand extends Command {
|
|||
$asset->supplier_id = $supplier->id;
|
||||
$asset->notes = $item["notes"];
|
||||
$asset->image = $asset_image;
|
||||
|
||||
$this->assets->add($asset);
|
||||
if (!$this->option('testrun')) {
|
||||
|
||||
if ($asset->save()) {
|
||||
|
|
Loading…
Reference in a new issue