Add subject to encoding, some packet fixes missed in previous commit

This commit is contained in:
Deon George
2021-08-25 00:15:09 +10:00
parent d86d90cdeb
commit 5e3b59ea7c
3 changed files with 7 additions and 5 deletions

View File

@@ -36,12 +36,12 @@ class ProcessPacket extends Command
$f = new File($this->argument('pkt'));
$d = Domain::where('name',$this->argument('domain'))->singleOrFail();
foreach (Packet::open($f,$d)->messages as $msg) {
foreach (Packet::open($f,$d) as $msg) {
// @todo Quick check that the packet should be processed by us.
// @todo validate that the packet's zone is in the domain.
// Dispatch job.
Job::dispatchSync($msg);
Job::dispatch($msg);
}
}
}