From 73ff0e8fe73d318ca0e22dc890bfe31979eacf86 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 13 Nov 2018 22:15:46 -0600 Subject: [PATCH] body for esi --- app/Library/Fleet.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Library/Fleet.php b/app/Library/Fleet.php index 015c65bf9..23f518eec 100644 --- a/app/Library/Fleet.php +++ b/app/Library/Fleet.php @@ -100,13 +100,11 @@ class Fleet { ]); //Crate the ESI Class $esi = new Eseye($authentication); + //Setup the body of the esi message + $esi->setBody(['character_id' => $charId, 'role' => 'squad_member']); //Perform the call to ESI $error = $esi->invoke('post', '/fleets/{fleet_id}/members/', [ 'fleet_id' => $this->fleet, - 'body' => [ - 'character_id' => $charId, - 'role' => 'squad_member', - ], ]); return $error;