Page 1 of 1

getResult() returns 1

Posted: Mon Aug 30, 2021 7:30 am
by username55
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();

Re: getResult() returns 1

Posted: Mon Aug 30, 2021 9:11 am
by username55
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.