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) {