Renamed import nodelist job, dont display address id's to unauthed users, removed debugging from importnodelist.

This commit is contained in:
Deon George
2021-06-26 10:55:02 +10:00
parent aa06296963
commit 980f57e808
3 changed files with 8 additions and 10 deletions

View File

@@ -6,16 +6,16 @@ use Carbon\Carbon;
use Illuminate\Console\Command;
use App\Models\{Domain,Nodelist};
use App\Jobs\ImportNodelist as Job;
use App\Jobs\NodelistImport as Job;
class ImportNodelist extends Command
class NodelistImport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'import:nodelist'
protected $signature = 'nodelist:import'
.' {domain : Domain Name}'
.' {file : Nodelist File}'
.' {--D|delete : Delete old data for the date}';

View File

@@ -14,7 +14,7 @@ use App\Http\Controllers\DomainController;
use App\Models\{Address,Domain,Nodelist,System,Zone};
use App\Traits\Import as ImportTrait;
class ImportNodelist implements ShouldQueue
class NodelistImport implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
use ImportTrait;
@@ -238,10 +238,8 @@ class ImportNodelist implements ShouldQueue
$ao->zone_id = $zo->id;
if ($ao->getDirty()) {
dd($ao);
if ($ao->getDirty())
$p++;
}
try {
$so->addresses()->save($ao);