Resolve "Car club final changes" #1534

Merged
korina.cordero merged 5 commits from 609-car-club-final-changes into master-fix 2021-08-09 06:59:31 +00:00
Showing only changes of commit 72a4ef6f72 - Show all commits

View file

@ -2581,13 +2581,13 @@ class APIController extends Controller implements LoggedController
else else
{ {
$nearest_hub_slots = $this->findAdvanceNearestHubAndSlots($coordinates, $em, $map_tools); $nearest_hub_slots = $this->findAdvanceNearestHubAndSlots($coordinates, $em, $map_tools);
}
if (empty($nearest_hub_slots['hub'])) if (empty($nearest_hub_slots['hub']))
{ {
$res->setError(true) $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!'); ->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(); return $res->getReturnResponse();
}
} }
// make hub data // make hub data