assets and structures
This commit is contained in:
@@ -29,7 +29,8 @@ class FetchAllianceStructures implements ShouldQueue
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
//Set the connection for the job
|
||||
$this->connection = 'redis';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,9 @@ class ProcessAllianceStructures implements ShouldQueue
|
||||
*/
|
||||
public function __construct($s)
|
||||
{
|
||||
//Set the connection for the job
|
||||
$this->connection = 'redis';
|
||||
|
||||
//Set variables
|
||||
$this->structure = $s;
|
||||
}
|
||||
@@ -69,7 +72,7 @@ class ProcessAllianceStructures implements ShouldQueue
|
||||
$esiHelper = new Esi;
|
||||
|
||||
//Get the solar system name
|
||||
$solarName = $lookup->SolarSystemIdToName($structure->system_id);
|
||||
$solarName = $lookup->SystemIdToName($structure->system_id);
|
||||
|
||||
$s = new Structure;
|
||||
$s->structure_id = $structure->structure_id;
|
||||
|
||||
@@ -27,7 +27,8 @@ class PurgeAllianceStructures implements ShouldQueue
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
//Set the connection for the job
|
||||
$this->connection = 'redis';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,6 +41,6 @@ class PurgeAllianceStructures implements ShouldQueue
|
||||
Structure::truncate();
|
||||
Service::truncate();
|
||||
|
||||
FetchAllianceStructures::dispatch()->onQueue('default');
|
||||
FetchAllianceStructures::dispatch()->onQueue('structures');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user