troubleshooting

This commit is contained in:
2018-12-24 12:09:01 -06:00
parent 918a5c9997
commit 3d962b1b1e
@@ -10,6 +10,7 @@ namespace App\Library\Finances\Helper;
use DB;
use App\Models\User\UserToCorporation;
use App\Models\Esi\EsiToken;
use App\Library\Esi;
use App\Library\Finances\MarketTax;
@@ -25,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 = DB::table('EsiTokens')->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);
@@ -39,7 +40,7 @@ class FinanceHelper {
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],
'refresh_token' => $token[0]->refresh_token,
'refresh_token' => $token->refresh_token,
]);
//Create the esi class varialble