diff --git a/www-api/app/Controllers/WrenchCrons.php b/www-api/app/Controllers/WrenchCrons.php index 3f067b3b..c0d078cc 100644 --- a/www-api/app/Controllers/WrenchCrons.php +++ b/www-api/app/Controllers/WrenchCrons.php @@ -9,6 +9,7 @@ define('WRB_CRONJOB_PASTDUE_ALERT',774); define('WRB_CRONJOB_OFFER_REFUND_ALERT',775); define('WRB_CRONJOB_PENDOFFER_ALERT',776); define('WRB_CRONJOB_NOTIFICATIONS', 777) ; +define('WRB_CRONJOB_GROUPJOBS', 778) ; class WrenchCrons extends BaseController { @@ -35,6 +36,18 @@ class WrenchCrons extends BaseController public function groupoffer(){ log_message('critical', "WrenchCrons ===> groupoffer ******** 0001"); + $in["action"] = WRB_JOB_CRONJOB; + $wrenchboard = new \App\Models\BackendModel(); + $out=[]; + + $in['call_action'] = WRB_CRONJOB_GROUPJOBS; + $in['one_limit'] = 10; //remove this + $in['limit'] = 10; + $ret['WRB_CRONJOB_GROUPJOBS'] = $wrenchboard->wrenchboard_api($in, $out); + $out = $ret; + log_message('critical', "WrenchCrons Out ===> groupoffer ******** 0001"); + //$response = []; //json_decode($complete, true); + return $this->response->setJson($out); return []; }