moving structure works back to jobs
This commit is contained in:
@@ -106,22 +106,14 @@ class GetStructuresCommand extends Command
|
||||
Log::critical("Failed to get structure list.");
|
||||
return null;
|
||||
}
|
||||
|
||||
for($i = 1; $i <= $structures->pages; $i++) {
|
||||
$sHelper = new StructureHelper($charId, $corpId, $i);
|
||||
|
||||
$sHelper->Start();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
for($i = 1; $i <= $structures->pages; $i++) {
|
||||
$job = new JobProcessStructure;
|
||||
$job->charId = $charId;
|
||||
$job->corpId = $corpId;
|
||||
$job->page = $i;
|
||||
ProcessStructureJob::dispatch($job)->onQueue('structures');
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
//Mark the job as finished
|
||||
$task->SetStopStatus();
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
/**
|
||||
* W4RP Services
|
||||
* GNU Public License
|
||||
*
|
||||
* Finally works in it's current state. Need to move to a job process.
|
||||
*/
|
||||
|
||||
namespace App\Library\Structures;
|
||||
@@ -115,7 +117,6 @@ class StructureHelper {
|
||||
|
||||
//Save the database record
|
||||
$st->save();
|
||||
dd($st);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class Structure extends Model
|
||||
*/
|
||||
|
||||
//Table Name
|
||||
public $table = 'AllianceStructures';
|
||||
public $table = 'alliance_structures';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
Reference in New Issue
Block a user