Early returns if no change is made in the Asset so the 'update' action doesn't log

This commit is contained in:
Ivan Nieto Vivanco 2022-06-06 22:00:05 -05:00
parent ab8dcdcc40
commit 1030ad9a27

View file

@ -37,6 +37,10 @@ class AssetObserver
}
}
if (empty($changed)){
return;
}
$logAction = new Actionlog();
$logAction->item_type = Asset::class;
$logAction->item_id = $asset->id;