From 0a5374c7430da9c378781a6c8f0e5469bc83af41 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 21 Jun 2024 11:45:31 +1000 Subject: [PATCH] Fix filefix rescan, argument used is file not days --- app/Console/Commands/Filefix/Rescan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Filefix/Rescan.php b/app/Console/Commands/Filefix/Rescan.php index 4f9b795..5121ad0 100644 --- a/app/Console/Commands/Filefix/Rescan.php +++ b/app/Console/Commands/Filefix/Rescan.php @@ -55,7 +55,7 @@ class Rescan extends Command foreach (File::select('id') ->where('filearea_id',$fao->id) ->when($this->argument('file'),function($query) { - return $query->where('name','=',$this->argument('days')); + return $query->where('name','=',$this->argument('file')); }) ->orderBy('datetime') ->cursor() as $fo) {