From 6e42bce409937286e3a119caf8cbe52d9909fe63 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 5 Jan 2023 18:04:06 -0800 Subject: [PATCH] Removed $start variable from calback Signed-off-by: snipe --- app/Console/Commands/SyncAssetCounters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/SyncAssetCounters.php b/app/Console/Commands/SyncAssetCounters.php index d396529f7f..b3bc15776e 100644 --- a/app/Console/Commands/SyncAssetCounters.php +++ b/app/Console/Commands/SyncAssetCounters.php @@ -45,7 +45,7 @@ class SyncAssetCounters extends Command $bar = $this->output->createProgressBar($assets_count); $assets = Asset::withCount('checkins as checkins_count', 'checkouts as checkouts_count', 'userRequests as user_requests_count') - ->withTrashed()->chunk(100, function ($assets) use ($bar, $start) { + ->withTrashed()->chunk(100, function ($assets) use ($bar) { if ($assets->count() > 0) {