Fix playback file path

This commit is contained in:
Nabeel Shahzad 2019-09-14 11:15:42 -04:00
parent 52332c250b
commit 3c21047c15

View File

@ -169,7 +169,7 @@ class AcarsReplay extends Command
* @var $flights Collection
*/
$flights = collect($files)->transform(function ($f) {
$file = storage_path('/replay/'.$f.'.json');
$file = $f;
if (file_exists($file)) {
$this->info('Loading '.$file);
$contents = file_get_contents($file);