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;