Fix processing packets with echomail messages from points

This commit is contained in:
Deon George 2021-08-22 16:25:43 +10:00
parent cab402d146
commit e0269c9718

View File

@ -162,7 +162,7 @@ class ProcessPacket implements ShouldQueue
// Else we are echomail
} else {
$ea = Echoarea::where('name',$this->msg->echoarea)
->where('domain_id',$this->msg->fftn_o->zone->domain_id)
->where('domain_id',$this->msg->fboss_o->zone->domain_id)
->single();
// Check for duplicate messages
@ -195,7 +195,7 @@ class ProcessPacket implements ShouldQueue
$o->datetime = $this->msg->date;
$o->tzoffset = $this->msg->date->utcOffset();
$o->fftn_id = ($x=$this->msg->fftn_o) ? $x->id : NULL;
$o->fftn_id = ($x=$this->msg->fboss_o) ? $x->id : NULL;
$o->echoarea_id = $ea?->id;
$o->msgid = $this->msg->msgid;