Skip to content

Commit 3bffbb2

Browse files
committed
All tests now pass.
1 parent cfda272 commit 3bffbb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/Users/BulkUsersController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,10 @@ private function logAccessoriesCheckin(Collection $accessoryUserRows): void
352352

353353
private function logConsumablesCheckin(Collection $consumableUserRows): void
354354
{
355+
\Log::error("Logging Consumables Checkin!");
355356
foreach ($consumableUserRows as $consumableUserRow) {
356357
$consumable = Consumable::find($consumableUserRow->consumable_id);
357-
$consumable->setTarget(auth()->user());
358+
$consumable->setTarget(User::find($consumableUserRow->assigned_to));
358359
$consumable->setNote('Bulk checkin items');
359360
$consumable->logWithoutSave(ActionType::CheckinFrom);
360361
}

0 commit comments

Comments
 (0)