Rename PacketProcess, fix Packet::open now using Zone not Domain
This commit is contained in:
@@ -10,7 +10,7 @@ use Symfony\Component\HttpFoundation\File\Exception\FileException;
|
||||
|
||||
use App\Classes\FTN\InvalidPacketException;
|
||||
use App\Classes\FTN\Packet;
|
||||
use App\Jobs\ProcessPacket;
|
||||
use App\Jobs\PacketProcess;
|
||||
use App\Models\Address;
|
||||
|
||||
/**
|
||||
@@ -112,7 +112,7 @@ final class Receive extends Item
|
||||
Log::info(sprintf('%s: - Processing mail packet [%s]',self::LOGKEY,$this->file));
|
||||
|
||||
try {
|
||||
$po = Packet::open(new File($this->file),$this->ao->zone->domain);
|
||||
$po = Packet::open(new File($this->file),$this->ao->zone);
|
||||
|
||||
} catch (InvalidPacketException $e) {
|
||||
Log::error(sprintf('%s: - Not deleting packet [%s], as it generated an exception',self::LOGKEY,$this->file));
|
||||
@@ -145,9 +145,9 @@ final class Receive extends Item
|
||||
|
||||
// Dispatch job.
|
||||
if ($queue)
|
||||
ProcessPacket::dispatch($msg);
|
||||
PacketProcess::dispatch($msg);
|
||||
else
|
||||
ProcessPacket::dispatchSync($msg);
|
||||
PacketProcess::dispatchSync($msg);
|
||||
}
|
||||
|
||||
if ($po->errors->count()) {
|
||||
|
Reference in New Issue
Block a user