Fixed logging for asset model restore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-19 13:20:19 +01:00
parent 8d52fa51b1
commit 84f14a05bd

View file

@ -233,7 +233,7 @@ class AssetModelsController extends Controller
if ($model->restore()) {
$logaction = new Actionlog();
$logaction->item_type = User::class;
$logaction->item_type = AssetModel::class;
$logaction->item_id = $model->id;
$logaction->created_at = date('Y-m-d H:i:s');
$logaction->user_id = auth()->id();