Add option to not process bots during import
This commit is contained in:
@@ -16,7 +16,10 @@ class PacketProcess extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'packet:process {pkt : Packet to process} {zone? : Zone the packet is from}';
|
||||
protected $signature = 'packet:process'
|
||||
.' {pkt : Packet to process}'
|
||||
.' {--N|nobot : Dont process bots}'
|
||||
.' {zone? : Zone the packet is from}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -41,7 +44,7 @@ class PacketProcess extends Command
|
||||
// @todo validate that the packet's zone is in the domain.
|
||||
|
||||
// Dispatch job.
|
||||
Job::dispatchSync($msg);
|
||||
Job::dispatchSync($msg,$this->option('nobot'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user