The following code used to return the information from the punch, now it just returns a value of 1. Any ideas?
$result = $punch_obj->setPunch( $punch_data );
$filter = array( 'filter_data' => array('user_id' => $userID,'time_stamp' => time())); //filters request
$user_data = $punch_obj->getPunch($filter)->getResult();
getResult() returns 1
-
- Posts: 6
- Joined: Mon Aug 30, 2021 7:24 am
Re: getResult() returns 1
Nevermind. It turns out I was using time_stamp for a filter with getPunch instead of start_date and end_date. I'm not sure why it decided to screw up today and not at any time before.