From bdd4d216f252e8e88248d2f5baa4840ec3c483a5 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 6 Dec 2018 18:15:25 -0600 Subject: [PATCH] helper for console commands --- app/Library/FinanceHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Library/FinanceHelper.php b/app/Library/FinanceHelper.php index b4e1b7642..abf06ef5c 100644 --- a/app/Library/FinanceHelper.php +++ b/app/Library/FinanceHelper.php @@ -152,7 +152,9 @@ class FinanceHelper { */ private function GetCharCorp($charId) { //Check for the character the user_to_corporation table - $found = DB::table('user_to_corporation')->where('character_id', $charId)->get(); + //$found = DB::table('user_to_corporation')->where('character_id', $charId)->get(); + $found = UserToCorporation::where('character_id', $charId)->get(); + dd($found); //If we don't find the character in the table, then let's retrieve the information from ESI if($found == null) { //Get the configuration for ESI from the environmental variables