Non functional cosmetic updates

This commit is contained in:
2023-10-04 15:49:44 +11:00
parent c7e707c143
commit 0fcb628c11
4 changed files with 11 additions and 8 deletions

View File

@@ -16,10 +16,10 @@ use App\Traits\ScopeActive;
class Address extends Model
{
private const LOGKEY = 'MA-';
use ScopeActive,SoftDeletes;
private const LOGKEY = 'MA-';
protected $with = ['zone'];
// http://ftsc.org/docs/frl-1028.002
@@ -768,8 +768,10 @@ class Address extends Model
$ao = $s->system->match($this->zone)->first();
// If we dont match on the address, we cannot pack mail for that system
if (! $ao)
if (! $ao) {
Log::alert(sprintf('%s:! We didnt match an address in zone [%d] for [%s]',self::LOGKEY,$this->zone->zone_id,$this->ftn));
return NULL;
}
// Get packet type
$type = collect(Packet::PACKET_TYPES)->get($this->system->pkt_type ?: config('fido.packet_default'));