Skip to content

A free open source IT asset/license management system

Added missing created_by in checkout request action

snipea0a335e771df
diff --git a/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php b/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
index 7a18dfa789..07e401924a 100644
--- a/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
+++ b/app/Actions/CheckoutRequests/CreateCheckoutRequestAction.php
@@ -92,6 +92,7 @@ class CreateCheckoutRequestAction
$logaction->item_id = $requestable->getKey();
$logaction->item_type = $requestable::class;
$logaction->created_at = $now;
+ $logaction->created_by = auth()->id();
$logaction->target_id = auth()->id();
$logaction->target_type = User::class;
$logaction->location_id = $user->location_id ?? null;