This commit is contained in:
2019-05-30 01:20:33 -05:00
parent 482c96f0f3
commit 378e00147e
2 changed files with 6 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class ProcessStructureJob implements ShouldQueue
//Setup the esi authentication container
$config = config('esi');
//Get the refresh token from the database
$token = EsiToken::where(['character_id' => $this->charId])->get(['refresh_token', 'id']);
$token = EsiToken::where(['character_id' => $this->charId])->get(['refresh_token']);
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],

View File

@@ -63,14 +63,16 @@ class StructureHelper {
}
if(isset($structure->unanchors_at)) {
$struct->unanchors_at = $structure->unanchors_at;
}
}
//Save the database record
$struct->save();
//If we set the structure services to true, let's save the services
if($structure->services == true) {
$this->StorestructureServices($structure->services, $structure->structure_id);
}
//Save the database record
$struct->save();
}
public function UpdateExistingStructure($structure, $info, $solarName) {