Fix missed Notification using old Message::class

This commit is contained in:
Deon George 2024-05-21 21:41:23 +10:00
parent 93272f57a9
commit caf590f2e9
2 changed files with 7 additions and 13 deletions

View File

@ -3,9 +3,7 @@
namespace App\Console\Commands; namespace App\Console\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use App\Classes\File;
use App\Classes\FTN\Packet; use App\Classes\FTN\Packet;
use App\Jobs\PacketProcess as Job; use App\Jobs\PacketProcess as Job;
use App\Models\Address; use App\Models\Address;
@ -60,16 +58,13 @@ class PacketProcess extends Command
/** /**
* Execute the console command. * Execute the console command.
* *
* @return void * @return int|void
* @throws \App\Exceptions\InvalidPacketException * @throws \Exception
*/ */
public function handle() public function handle()
{ {
//$fs = Storage::disk(config('fido.local_disk'));
$rel_name = sprintf('%s/%s',config('fido.dir'),$this->argument('file')); $rel_name = sprintf('%s/%s',config('fido.dir'),$this->argument('file'));
//$f = new File($fs->path($rel_name));
$m = []; $m = [];
if ($this->argument('ftn')) { if ($this->argument('ftn')) {
$ao = Address::findFTN($this->argument('ftn')); $ao = Address::findFTN($this->argument('ftn'));
@ -84,6 +79,6 @@ class PacketProcess extends Command
Job::dispatchSync($rel_name,$ao->zone->domain,$this->option('dontqueue')); Job::dispatchSync($rel_name,$ao->zone->domain,$this->option('dontqueue'));
return Command::SUCCESS; return self::SUCCESS;
} }
} }

View File

@ -5,9 +5,8 @@ namespace App\Notifications\Netmails;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
use App\Classes\FTN\Message;
use App\Notifications\Netmails; use App\Notifications\Netmails;
use App\Models\Netmail; use App\Models\{Echomail,Netmail};
use App\Traits\{MessagePath,PageTemplate}; use App\Traits\{MessagePath,PageTemplate};
class EchomailBadAddress extends Netmails class EchomailBadAddress extends Netmails
@ -16,14 +15,14 @@ class EchomailBadAddress extends Netmails
private const LOGKEY = 'NBA'; private const LOGKEY = 'NBA';
private Message $mo; private Echomail $mo;
/** /**
* Send a sysop a message if they give us a message with a bad address in it. * Send a sysop a message if they give us a message with a bad address in it.
* *
* @param Message $mo * @param Echomail $mo
*/ */
public function __construct(Message $mo) public function __construct(Echomail $mo)
{ {
parent::__construct(); parent::__construct();