Merge branch '614-app-crashes-when-getting-hub-timeslots' into 'master-fix'
Resolve "App crashes when getting hub timeslots" See merge request jankstudio/resq!727
This commit is contained in:
commit
fafb5206bd
1 changed files with 11 additions and 0 deletions
|
|
@ -2600,6 +2600,17 @@ class APIController extends Controller implements LoggedController
|
||||||
$hub = $car_club_cust_hub->getHub();
|
$hub = $car_club_cust_hub->getHub();
|
||||||
$nearest_hub_slots = $this->findAdvanceNearestHubAndSlots($coordinates, $em, $map_tools, $hub);
|
$nearest_hub_slots = $this->findAdvanceNearestHubAndSlots($coordinates, $em, $map_tools, $hub);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$nearest_hub_slots = $this->findAdvanceNearestHubAndSlots($coordinates, $em, $map_tools);
|
||||||
|
|
||||||
|
if (empty($nearest_hub_slots['hub']))
|
||||||
|
{
|
||||||
|
$res->setError(true)
|
||||||
|
->setErrorMessage('Thank you for reaching out to us. Due to the General Community Quarantine, our Operations are from 8AM to 6PM only. Please expect a call from us tomorrow and we will assist you with your request. Thank you and stay safe!');
|
||||||
|
return $res->getReturnResponse();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue