Merge branch '132-more-rider-api-calls' into 'master'

Resolve "More rider api calls"

Closes #132

See merge request jankstudio/resq!118
This commit is contained in:
Kendrick Chan 2018-05-28 12:17:28 +00:00
commit c0d52c3800

View file

@ -445,6 +445,7 @@ class RAPIController extends Controller
public function acceptJobOrder(Request $req)
{
$em = $this->getDoctrine()->getManager();
$required_params = ['jo_id'];
$res = $this->checkJO($req, $required_params, $jo);
if ($res->isError())
@ -465,6 +466,7 @@ class RAPIController extends Controller
public function cancelJobOrder(Request $req)
{
$em = $this->getDoctrine()->getManager();
$required_params = ['jo_id'];
$res = $this->checkJO($req, $required_params, $jo);
if ($res->isError())
@ -485,6 +487,7 @@ class RAPIController extends Controller
public function arrive(Request $req)
{
$em = $this->getDoctrine()->getManager();
$required_params = ['jo_id'];
$res = $this->checkJO($req, $required_params, $jo);
if ($res->isError())