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;
|
||||
|
||||
$this->getErrorRateService->setInputParameters([
|
||||
'area' => $mission->area,
|
||||
'start_date' => $mission->start_date,
|
||||
'end_date' => $mission->end_date,
|
||||
'machine_code' => $mission->machines()->first('cmms_machines.machine_code')
|
||||
'missionArea' => $mission->area['coordinates'],
|
||||
'missionStartDT' => $mission->start_date,
|
||||
'missionEndDT' => $mission->end_date,
|
||||
'machineCode' => $mission->machines()->first('cmms_machines.machine_code'),
|
||||
'areaType' => $mission->area['type'] === 'polygon' ? 1 : 2,
|
||||
]);
|
||||
|
||||
$this->getErrorRateService->run();
|
||||
|
||||
@@ -63,7 +63,6 @@ class GetErrorRateService
|
||||
$inputData = $this->inputParameters + array(
|
||||
"username" => $this->username,
|
||||
"password" => $this->password,
|
||||
"minStopDuration" => 1,
|
||||
);
|
||||
|
||||
return json_encode($inputData);
|
||||
|
||||
Reference in New Issue
Block a user