modified fetch moon observer job
This commit is contained in:
@@ -76,7 +76,7 @@ class FetchMoonObserverJob implements ShouldQueue
|
|||||||
|
|
||||||
//Get the mining observers for the corporation's from esi
|
//Get the mining observers for the corporation's from esi
|
||||||
try {
|
try {
|
||||||
$responses = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
$responses = $esiHelper->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
||||||
'corporation_id' => $character->corporation_id,
|
'corporation_id' => $character->corporation_id,
|
||||||
]);
|
]);
|
||||||
} catch(RequestFailedException $e) {
|
} catch(RequestFailedException $e) {
|
||||||
@@ -91,7 +91,7 @@ class FetchMoonObserverJob implements ShouldQueue
|
|||||||
$obs = new CorpMoonObserver;
|
$obs = new CorpMoonObserver;
|
||||||
$obs->observer_id = $observer->observer_id;
|
$obs->observer_id = $observer->observer_id;
|
||||||
$obs->observer_type = $observer->observer_type;
|
$obs->observer_type = $observer->observer_type;
|
||||||
$obs->last_updated = $esi->DecodeDate($observer->last_updated);
|
$obs->last_updated = $esiHepler->DecodeDate($observer->last_updated);
|
||||||
$obs->save();
|
$obs->save();
|
||||||
} else {
|
} else {
|
||||||
CorpMoonObserver::where([
|
CorpMoonObserver::where([
|
||||||
|
|||||||
Reference in New Issue
Block a user