Fix seenby sort order, with flatten domains
This commit is contained in:
@@ -80,6 +80,14 @@ class Address extends Model
|
||||
->orderBy('point_id');
|
||||
}
|
||||
|
||||
public function scopeFTN2DOrder($query)
|
||||
{
|
||||
return $query
|
||||
->orderBy('host_id')
|
||||
->orderBy('node_id')
|
||||
->orderBy('point_id');
|
||||
}
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
/**
|
||||
|
@@ -138,7 +138,7 @@ final class Echomail extends Model implements Packet
|
||||
public function seenby()
|
||||
{
|
||||
return $this->belongsToMany(Address::class,'echomail_seenby')
|
||||
->ftnOrder();
|
||||
->FTN2DOrder();
|
||||
}
|
||||
|
||||
public function path()
|
||||
|
Reference in New Issue
Block a user