Fix bugs found during testing. #609
This commit is contained in:
parent
b56754363e
commit
72a4ef6f72
1 changed files with 6 additions and 6 deletions
|
|
@ -2581,13 +2581,13 @@ class APIController extends Controller implements LoggedController
|
|||
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();
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
// make hub data
|
||||
|
|
|
|||
Loading…
Reference in a new issue