moons admin controller

This commit is contained in:
2019-02-16 00:00:04 -06:00
parent 177eb004bf
commit 7b551b45b2

View File

@@ -87,7 +87,7 @@ class LookupHelper {
//hit the ESI API all the time
public function LookupCorporation($corpId) {
//Check for the character in the user_to_corporation table
$found = CorporationToAlliance::where('corporation_id', $charId)->get(['alliance_id']);
$found = CorporationToAlliance::where('corporation_id', $corpId)->get(['alliance_id']);
//If we don't find the character in the table, then we retrieve from ESI
//and add the character to the table