Implemented filefix %SCAN/%RESCAN, and some cosmetic cleanup
This commit is contained in:
@@ -85,15 +85,15 @@ class AreafixRescan implements ShouldQueue
|
||||
$latest = NULL;
|
||||
|
||||
foreach (Echomail::select(['id','datetime'])
|
||||
->where('echoarea_id',$this->eao->id)
|
||||
->where('datetime','>=',
|
||||
Carbon::now()
|
||||
->subDays($this->days)
|
||||
->startOfDay()
|
||||
)
|
||||
->orderBy('datetime')
|
||||
->cursor() as $eo) {
|
||||
|
||||
->where('echoarea_id',$this->eao->id)
|
||||
->where('datetime','>=',
|
||||
Carbon::now()
|
||||
->subDays($this->days)
|
||||
->startOfDay()
|
||||
)
|
||||
->orderBy('datetime')
|
||||
->cursor() as $eo)
|
||||
{
|
||||
// Echomail hasnt been exported before
|
||||
if (! $eo->seenby->count()) {
|
||||
$eo->seenby()->attach($this->ao->id,['export_at'=>Carbon::now()]);
|
||||
|
Reference in New Issue
Block a user