@ -116,6 +116,7 @@ class PresenceController extends Controller
->whereDate("ma.end_date", ">=", $params->clock_time)
->get();
$temp = [];
if (count($geom) > 0) {
foreach($geom as $dataGeom){
$valGeom = json_decode($dataGeom->geom);
if($params->type=="out"){
@ -131,8 +132,7 @@ class PresenceController extends Controller
);
}
return $temp;