From 466febeb1330456fab9fb9ab2914b862f168b600 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 28 Dec 2019 23:40:04 -0600 Subject: [PATCH] entity stuff for blacklist' --- app/Http/Controllers/Blacklist/BlacklistController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Blacklist/BlacklistController.php b/app/Http/Controllers/Blacklist/BlacklistController.php index a8e0a4ed7..bbfba9d9f 100644 --- a/app/Http/Controllers/Blacklist/BlacklistController.php +++ b/app/Http/Controllers/Blacklist/BlacklistController.php @@ -66,10 +66,10 @@ class BlacklistController extends Controller if($request->type == 'Character') { //Get the character id from the universe end point $charId = $lookup->CharacterNameToId($request->name); - } else if($request->entity_type == 'corporation') { + } else if($request->type == 'Corporation') { //Get the corporation id from the universe end point $corpId = $lookup->CorporationNameToId($request->name); - } else if($request->entity_type == 'alliance') { + } else if($request->type == 'Alliance') { //Get the alliance id from the universe end point $allianceId = $lookup->AllianceNameToId($request->name); } else { @@ -100,7 +100,7 @@ class BlacklistController extends Controller BlacklistEntity::insert([ 'entity_id' => $entityId, 'entity_name' => $request->name, - 'entity_type' => $entityType, + 'entity_type' => $request->type, 'reason' => $request->reason, 'alts' => $request->alts, 'lister_id' => auth()->user()->getId(),