esi update for observers

This commit is contained in:
2021-03-21 21:54:29 +09:00
parent 69892f4a6e
commit 40de3073f6
2 changed files with 18 additions and 4 deletions
@@ -96,14 +96,14 @@ class MiningTaxesObservers extends Command
$sHelper = new StructureHelper($config['primary'], $config['corporation']);
//Get the structure name from the universe endpoint to store in the database
$observerInfo = $sHelper->GetStructureInfo($observer->observer_id);
$observerName = $sHelper->GetStructureName($observer->observer_id);
Observer::updateOrInsert([
'observer_id' => $observer->observer_id,
], [
'observer_id' => $observer->observer_id,
'observer_type' => $observer->observer_type,
'observer_name' => $observerInfo->name,
'observer_name' => $observerName,
'last_updated' => $observer->last_updated,
]);
}