Resolve "Resq 1.5 changes" #1556

Merged
korina.cordero merged 30 commits from 632-resq-1-5-changes into master-fix 2021-12-03 05:54:22 +00:00
Showing only changes of commit 4ce09e9671 - Show all commits

View file

@ -2288,6 +2288,13 @@ class APIController extends Controller implements LoggedController
];
$res->setData($data);
// check if is_covered is false. If so, we need to set the error part in the response
if (!$is_covered)
{
$res->setError(true)
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
}
return $res->getReturnResponse();
}