diff --git a/app/Controllers/EmployeeServiceController.php b/app/Controllers/EmployeeServiceController.php index 826c7e29..9f80c0a1 100755 --- a/app/Controllers/EmployeeServiceController.php +++ b/app/Controllers/EmployeeServiceController.php @@ -2045,13 +2045,13 @@ public function employeesEnrollmentInsert($params) //store email and mail content via helper to send notification $emp_emails[] = sendMailNotification::sendMailNotification('member_welcome_mail', $params); - Kint::dump($emp_emails); - Kint::dump($key.'-'.count($excel_data)); + // Kint::dump($emp_emails); + // Kint::dump($key.'-'.count($excel_data)); // if mail count is 20 send bulk mail and reset emp_emails variable if (count($emp_emails) == 20 || $key == count($excel_data) ) { $job_details = new Jobs(); $r = Jobs::addJob(['job_name' => 'bulk_mail','payload' => $emp_emails]); - echo 'Mail triggered'; + // echo 'Mail triggered'; $emp_emails = []; } @@ -2059,6 +2059,8 @@ public function employeesEnrollmentInsert($params) } } //end of for loop + + return true; }