Notifications

This commit is contained in:
CHIEFSOFT\ameye
2024-09-04 14:21:43 -04:00
parent 905563b0c1
commit 7c9e1e8c24
3 changed files with 19 additions and 1 deletions
+16 -1
View File
@@ -41,7 +41,7 @@ class AirFlow extends BaseController
$out =[];
log_message('critical', "AirFlow::flowDueReminder ********* ALL ".serialize($in) );
return $this->jobLevelAlerts();
// return []; //json_encode( $final_out );
}
@@ -54,6 +54,21 @@ class AirFlow extends BaseController
return []; //json_encode( $final_out );
}
public function flowSendNotifications(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
log_message('critical', "AirFlow::flowApproveReminder ********* ALL ".serialize($in) );
$in["loc"] = $_SERVER["REMOTE_ADDR"];
$in['call_action'] = WRB_CRONJOB_NOTIFICATIONS;
$in['one_limit'] = 10; //remove this
$in['limit'] = 10;
$ret['WRB_CRONJOB_NOTIFICATIONS'] = (new \App\Models\BackendModel())->wrenchboard_api($in, $out);
return []; //json_encode( $final_out );
}
public function flowSignupReport(){
$raw_json = file_get_contents('php://input');