Renamed import nodelist job, dont display address id's to unauthed users, removed debugging from importnodelist.
This commit is contained in:
@@ -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}';
|
@@ -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);
|
Reference in New Issue
Block a user