more work on rental moon ledgers

This commit is contained in:
2020-05-10 04:23:49 -05:00
parent db6876cdca
commit c6f807ebad
6 changed files with 202 additions and 17 deletions
+15 -5
View File
@@ -23,6 +23,20 @@ class FetchRentalMoonLedgerJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Timeout in seconds
*
* @var int
*/
public $timeout = 3600;
/**
* Retries
*
* @var int
*/
public $retries = 3;
/**
* Create a new job instance.
*
@@ -41,12 +55,8 @@ class FetchRentalMoonLedgerJob implements ShouldQueue
public function handle()
{
//Declare variables
$structures = array();
$miningLedgers = array();
$tempMiningLedger = array();
$esiHelper = new Esi;
$lookup = new LookupHelper;
$structure = new StructureHelper;
$response = null;
$structureInfo = null;
@@ -103,7 +113,7 @@ class FetchRentalMoonLedgerJob implements ShouldQueue
$newLedger->observer_id = $observer->observer_id;
$newLedger->observer_name = $observerName;
$newLedger->type_id = $ledger->type_id;
$newLedger->ore = $ore ;
$newLedger->ore = $ore;
$newLedger->quantity = $ledger->quantity;
$newLedger->recorded_corporation_id = $ledger->recorded_corporation_id;
$newLedger->recorded_corporation_name = $recordedCorpName;