ledger job

This commit is contained in:
2021-02-22 22:37:59 +09:00
parent fcb0dbc7a0
commit 23873033bf

View File

@@ -91,7 +91,7 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue
//Get the ledger from ESI
try {
$ledgers = $this->esi->invoke('get', '/corporation/{corporation_id}/mining/observers/{observer_id}/', [
$response = $this->esi->invoke('get', '/corporation/{corporation_id}/mining/observers/{observer_id}/', [
'corporation_id' => $this->corpId,
'observer_id' => $this->observerId,
]);
@@ -100,6 +100,8 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue
return null;
}
$ledgers = json_decode($response);
//Sort through the array, and create the variables needed for database entries
foreach($ledgers as $ledger) {
//Get some basic information we need to work with