Flight/Subfleet fares not returning in API #899 (#900)

Make sure proper fares are returned from the API #899
This commit is contained in:
Nabeel S
2020-10-24 15:11:08 -04:00
committed by GitHub
parent b83f7dcac8
commit 1be68d1e63
13 changed files with 206 additions and 95 deletions

View File

@@ -60,13 +60,13 @@ class FareService extends Service
}
/**
* Get fares
* Get a fare with the proper prices/costs populated in the pivot
*
* @param $fare
*
* @return mixed
*/
protected function getFares($fare)
public function getFares($fare)
{
$pivot = $fare->pivot;
if (filled($pivot->price)) {