troubleshooting
This commit is contained in:
@@ -65,6 +65,7 @@ class CorpJournal extends Command
|
||||
$corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get();
|
||||
foreach($corps as $corp) {
|
||||
$charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first(['character_id']);
|
||||
$this->line($charId);
|
||||
$finance->GetWalletJournal(1, $charId[0]);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class FinanceHelper {
|
||||
|
||||
public function GetWalletJournal($division, $charId) {
|
||||
//Get hte ESI token for the corporation to add new wallet journals into the database
|
||||
$token = EsiToken::where('character_id', $charId)->get();
|
||||
$token = EsiToken::where(['character_id' => $charId])->get();
|
||||
|
||||
//Reference to see if the character is in our look up table for corporations and characters
|
||||
$corpId = $this->GetCharCorp($charId);
|
||||
|
||||
Reference in New Issue
Block a user