Mail bundling and processing performance improvements
This commit is contained in:
@@ -280,12 +280,15 @@ final class Echomail extends Model implements Packet
|
||||
|
||||
public function echoarea()
|
||||
{
|
||||
return $this->belongsTo(Echoarea::class);
|
||||
return $this->belongsTo(Echoarea::class)
|
||||
->select('id','active','name','domain_id','security','automsgs')
|
||||
->with(['domain:id,name']);
|
||||
}
|
||||
|
||||
public function seenby()
|
||||
{
|
||||
return $this->belongsToMany(Address::class,'echomail_seenby')
|
||||
->select(['id','zone_id','host_id','node_id'])
|
||||
->withPivot(['export_at','sent_at','sent_pkt'])
|
||||
->FTN2DOrder();
|
||||
}
|
||||
@@ -293,6 +296,7 @@ final class Echomail extends Model implements Packet
|
||||
public function path()
|
||||
{
|
||||
return $this->belongsToMany(Address::class,'echomail_path')
|
||||
->select(['addresses.id','zone_id','host_id','node_id'])
|
||||
->withPivot(['id','parent_id','recv_pkt','recv_at'])
|
||||
->orderBy('id','DESC');
|
||||
}
|
||||
|
Reference in New Issue
Block a user