From 72a4ef6f72ca456afd3afc9447459ad9ed3bbe7f Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 2 Aug 2021 09:13:58 +0000 Subject: [PATCH] Fix bugs found during testing. #609 --- src/Controller/APIController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index d1017a30..c0f23ea8 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -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