diff --git a/js/bts_timesheet.js b/js/bts_timesheet.js index 0607f86..26811de 100644 --- a/js/bts_timesheet.js +++ b/js/bts_timesheet.js @@ -1140,6 +1140,8 @@ if(typeof bts().staff == 'undefined' || typeof bts().client == 'undefined' || bts().earnings_rate == 'undefined' ){ setTimeout(do_load_time_sheet,500); + }else{ + do_load_time_sheet(); } function do_load_time_sheet(){ diff --git a/ts.php b/ts.php index 3e8958e..262eb3c 100644 --- a/ts.php +++ b/ts.php @@ -634,7 +634,7 @@ class AcareOffice{ // Usage: `wp sync_users --mininterval=123 public function sync_user_cli($args = array(), $assoc_args = array()){ $arguments = wp_parse_args( $assoc_args, array( - 'mininterval' => 600, + 'mininterval' => 86400, 'employeeonly' => false, 'clientsonly' => false, ) );