Fix filefix rescan, argument used is file not days
This commit is contained in:
parent
1b2358b5a9
commit
0a5374c743
@ -55,7 +55,7 @@ class Rescan extends Command
|
|||||||
foreach (File::select('id')
|
foreach (File::select('id')
|
||||||
->where('filearea_id',$fao->id)
|
->where('filearea_id',$fao->id)
|
||||||
->when($this->argument('file'),function($query) {
|
->when($this->argument('file'),function($query) {
|
||||||
return $query->where('name','=',$this->argument('days'));
|
return $query->where('name','=',$this->argument('file'));
|
||||||
})
|
})
|
||||||
->orderBy('datetime')
|
->orderBy('datetime')
|
||||||
->cursor() as $fo) {
|
->cursor() as $fo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user