Merge pull request #43 from witelgroup/feature/WebserviceMission
change stracture form listener for fms webservice
This commit is contained in:
@@ -28,10 +28,11 @@ class SendDataToFMSListener implements ShouldQueue
|
|||||||
$mission = $event->mission;
|
$mission = $event->mission;
|
||||||
|
|
||||||
$this->getErrorRateService->setInputParameters([
|
$this->getErrorRateService->setInputParameters([
|
||||||
'area' => $mission->area,
|
'missionArea' => $mission->area['coordinates'],
|
||||||
'start_date' => $mission->start_date,
|
'missionStartDT' => $mission->start_date,
|
||||||
'end_date' => $mission->end_date,
|
'missionEndDT' => $mission->end_date,
|
||||||
'machine_code' => $mission->machines()->first('cmms_machines.machine_code')
|
'machineCode' => $mission->machines()->first('cmms_machines.machine_code'),
|
||||||
|
'areaType' => $mission->area['type'] === 'polygon' ? 1 : 2,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->getErrorRateService->run();
|
$this->getErrorRateService->run();
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ class GetErrorRateService
|
|||||||
$inputData = $this->inputParameters + array(
|
$inputData = $this->inputParameters + array(
|
||||||
"username" => $this->username,
|
"username" => $this->username,
|
||||||
"password" => $this->password,
|
"password" => $this->password,
|
||||||
"minStopDuration" => 1,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return json_encode($inputData);
|
return json_encode($inputData);
|
||||||
|
|||||||
Reference in New Issue
Block a user