lookup helper

This commit is contained in:
2019-10-20 18:41:55 -05:00
parent dec8c2c5ab
commit 1e89f82802
2 changed files with 2 additions and 4 deletions

View File

@@ -43,8 +43,6 @@ class DashboardController extends Controller
//Find start and end station. Need to work on how to tell citadels later.
$startStation = $lookupHelper->GetStationDetails($con->start_location_id);
$endStation = $lookupHelper->GetStationDetails($con->end_location_id);
dd($endStation);
if(isset($startStation->system_id)) {
$startSystem = $lookupHelper->GetSolarSystemName($startStation->system_id);

View File

@@ -740,7 +740,7 @@ class LookupHelper {
$count = StationLookup::where(['station_id' => $id])->count();
if($count > 0) {
$station = StationLookup::where(['station_id' => $id])->get();
$station = StationLookup::where(['station_id' => $id])->first();
} else {
return null;
}
@@ -749,7 +749,7 @@ class LookupHelper {
$count = StationLookup::where(['name' => $name])->count();
if($coutn > 0) {
$station = StationLookup::where(['name' => $name])->get();
$station = StationLookup::where(['name' => $name])->first();
} else {
return null;
}