Compare commits
No commits in common. "e1ed446f3eb6b9d7479be32bbd69ac56c22af353" and "33a97ce5b394d80a6062f375adc66c40cf82a418" have entirely different histories.
e1ed446f3e
...
33a97ce5b3
@ -74,27 +74,18 @@ final class Dynamic extends Send
|
||||
$this->do->next_at = $next_at
|
||||
->addDay();
|
||||
|
||||
while ($this->do->next_at->isPast())
|
||||
$this->do->next_at->addDay();
|
||||
|
||||
break;
|
||||
|
||||
case 'WEEKLY':
|
||||
$this->do->next_at = $next_at
|
||||
->addWeek();
|
||||
|
||||
while ($this->do->next_at->isPast())
|
||||
$this->do->next_at->addWeek();
|
||||
|
||||
break;
|
||||
|
||||
case 'MONTHLY':
|
||||
$this->do->next_at = $next_at
|
||||
->addMonth();
|
||||
|
||||
while ($this->do->next_at->isPast())
|
||||
$this->do->next_at->addMonth();
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -427,13 +427,17 @@ class Address extends Model
|
||||
->join('zones',['zones.id'=>'addresses.zone_id'])
|
||||
->join('domains',['domains.id'=>'zones.domain_id'])
|
||||
->orderBy('domains.name')
|
||||
->FTNorder()
|
||||
->orderBy('region_id')
|
||||
->orderBy('host_id')
|
||||
->orderBy('node_id')
|
||||
->orderBy('point_id')
|
||||
->with([
|
||||
'zone:zones.id,domain_id,zone_id,active',
|
||||
'zone.domain:domains.id,name,active,public',
|
||||
]);
|
||||
}
|
||||
|
||||
/** @deprecated use FTN() */
|
||||
public function scopeFTNOrder($query)
|
||||
{
|
||||
return $query
|
||||
@ -967,7 +971,6 @@ class Address extends Model
|
||||
->where('host_id',$this->host_id)
|
||||
->where('hub_id',$this->id)
|
||||
->where('id','<>',$this->id)
|
||||
->FTNorder()
|
||||
->get();
|
||||
|
||||
// Need to add in points of this hub's nodes
|
||||
@ -978,7 +981,6 @@ class Address extends Model
|
||||
->where('host_id',$this->host_id)
|
||||
->whereIn('node_id',$o->pluck('node_id'))
|
||||
->where('point_id','<>',0)
|
||||
->FTNorder()
|
||||
->get()
|
||||
);
|
||||
|
||||
@ -1009,7 +1011,6 @@ class Address extends Model
|
||||
|
||||
return $o
|
||||
->where('id','<>',$this->id)
|
||||
->FTNorder()
|
||||
->get();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user