Merge branch '199-geofence-notification-text-change' into 'master'

Change error message for geofence error in mobile app #199

Closes #199

See merge request jankstudio/resq!232
This commit is contained in:
Kendrick Chan 2019-04-02 04:15:11 +00:00
commit f2415b27ce

View file

@ -802,8 +802,9 @@ class APIController extends Controller
$is_covered = $geo->isCovered($long, $lat);
if (!$is_covered)
{
// TODO: put geofence error message in config file somewhere
$res->setError(true)
->setErrorMessage('Location is not covered by our service.');
->setErrorMessage('Oops! Our service is limited to Metro Manila only. We will update you as soon as we are able to cover your area');
return $res->getReturnResponse();
}