Skip to content

Commit b5fa538

Browse files
committed
Set created_by correctly in he action log
1 parent b61eacb commit b5fa538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Users/BulkUsersController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private function logAccessoriesCheckin(Collection $accessoryUserRows): void
360360
$logAction->item_type = Accessory::class;
361361
$logAction->target_id = $accessoryUserRow->assigned_to;
362362
$logAction->target_type = User::class;
363-
$logAction->created_at = auth()->id();
363+
$logAction->created_by = auth()->id();
364364
$logAction->note = 'Bulk checkin items';
365365
$logAction->logaction('checkin from');
366366
}
@@ -374,7 +374,7 @@ private function logConsumablesCheckin(Collection $consumableUserRows): void
374374
$logAction->item_type = Consumable::class;
375375
$logAction->target_id = $consumableUserRow->assigned_to;
376376
$logAction->target_type = User::class;
377-
$logAction->created_at = auth()->id();
377+
$logAction->created_by = auth()->id();
378378
$logAction->note = 'Bulk checkin items';
379379
$logAction->logaction('checkin from');
380380
}

0 commit comments

Comments
 (0)