troubleshooting

This commit is contained in:
2018-12-24 12:17:09 -06:00
parent 70b95f219b
commit f646f983db
2 changed files with 2 additions and 1 deletions

View File

@@ -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]);
}

View File

@@ -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);