Add request object to format job order data method #424
This commit is contained in:
parent
60323acce3
commit
fe363e1df6
1 changed files with 3 additions and 3 deletions
|
|
@ -605,7 +605,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
return $data;
|
||||
}
|
||||
|
||||
protected function formatJobOrderData($jo)
|
||||
protected function formatJobOrderData($req, $jo)
|
||||
{
|
||||
$coord = $jo->getCoordinates();
|
||||
$cust = $jo->getCustomer();
|
||||
|
|
@ -776,7 +776,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
return $data;
|
||||
}
|
||||
|
||||
$jo_data = $this->formatJobOrderData($jo);
|
||||
$jo_data = $this->formatJobOrderData($req, $jo);
|
||||
|
||||
$data = [
|
||||
'job_order' => $jo_data
|
||||
|
|
@ -1880,7 +1880,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
return $data;
|
||||
}
|
||||
|
||||
$jo_data = $this->formatJobOrderData($jo);
|
||||
$jo_data = $this->formatJobOrderData($req, $jo);
|
||||
|
||||
$data = [
|
||||
'job_order' => $jo_data
|
||||
|
|
|
|||
Loading…
Reference in a new issue