Fix filefix rescan, argument used is file not days

This commit is contained in:
Deon George 2024-06-21 11:45:31 +10:00
parent 1b2358b5a9
commit 0a5374c743

View File

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