moving structure works back to jobs

This commit is contained in:
2019-05-30 19:47:40 -05:00
parent 57dc1f2c4d
commit 4f272fc3a1
4 changed files with 5 additions and 41 deletions
+2 -10
View File
@@ -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();
+2 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ class Structure extends Model
*/
//Table Name
public $table = 'AllianceStructures';
public $table = 'alliance_structures';
//Primary Key
public $primaryKey = 'id';