From 300a6e789c8abd325b394bc4d62e10fda6413cee Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 28 Sep 2019 00:12:05 -0500 Subject: [PATCH] hauling helper function --- app/Library/Hauling/HaulingHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Library/Hauling/HaulingHelper.php b/app/Library/Hauling/HaulingHelper.php index d968804..2447681 100644 --- a/app/Library/Hauling/HaulingHelper.php +++ b/app/Library/Hauling/HaulingHelper.php @@ -26,8 +26,8 @@ class HaulingHelper { public function JumpsBetweenSystems($name1, $name2) { //Get the systems from the database - $system1 = SolarSystem::where(['name' => $name1])->get(); - $system2 = SolarSystem::where(['name' => $name2])->get(); + $system1 = SolarSystem::where(['name' => $name1])->first(); + $system2 = SolarSystem::where(['name' => $name2])->first(); try { $route = $this->esi->invoke('get', '/route/{origin}/{destination}/', [