Split out the saveRoute() fn so it's only during a manual filing, not ACARS

This commit is contained in:
Nabeel Shahzad
2018-01-04 19:39:41 -06:00
parent b0231ff2a9
commit b29a07afd3
4 changed files with 6 additions and 6 deletions

View File

@@ -290,9 +290,10 @@ class PirepController extends RestController
Log::info('Posting ACARS log', $request->toArray());
$attrs = $this->getFromReq($request, [
'log' => 'required',
'lat' => 'nullable',
'lon' => 'nullable',
'log' => 'required',
'lat' => 'nullable',
'lon' => 'nullable',
'created_at' => 'nullable',
], ['pirep_id' => $id, 'type' => AcarsType::LOG]);
$acars = Acars::create($attrs);