Fix packet:info command when using system, fix adding clrghouz to path for echomail
This commit is contained in:
@@ -75,7 +75,7 @@ final class Echomail extends Model implements Packet
|
||||
// Our address
|
||||
$ftns = Setup::findOrFail(config('app.id'))
|
||||
->system
|
||||
->match($model->fftn->zone,Address::NODE_ACTIVE|Address::NODE_PVT|Address::NODE_HOLD);
|
||||
->match($model->fftn->zone);
|
||||
|
||||
// Add our address to the seenby;
|
||||
$model->set_seenby = $model->set_seenby->merge($ftns->pluck('id'))->unique();
|
||||
|
@@ -170,7 +170,7 @@ class System extends Model
|
||||
* @param int $type
|
||||
* @return Collection
|
||||
*/
|
||||
public function match(Zone $o,int $type=(Address::NODE_HC|Address::NODE_ACTIVE|Address::NODE_PVT|Address::NODE_POINT)): Collection
|
||||
public function match(Zone $o,int $type=(Address::NODE_NC|Address::NODE_HC|Address::NODE_ACTIVE|Address::NODE_PVT|Address::NODE_POINT)): Collection
|
||||
{
|
||||
return $this->addresses
|
||||
->where('zone_id',$o->id)
|
||||
|
Reference in New Issue
Block a user