Fix missed Notification using old Message::class

This commit is contained in:
2024-05-21 21:41:23 +10:00
parent 8df6384736
commit 51784df6a8
2 changed files with 7 additions and 13 deletions

View File

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