diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index a0e4bf23..daec5ee3 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -213,19 +213,19 @@ class RestAuthenticationController extends AdminController $client_id = $this->request->getJSON()->client_id ?? null; $employee_id = $this->request->getJSON()->employee_id ?? null; - // $builder = $this->employeeModel - // ->where('email_corporate', $email) - // ->where('relationship', 'Self') - // ->where('is_active', 1); - $builder = $this->employeeModel - ->join('employee_polices EP', 'EP.employee_id = employees.id', 'inner') - ->where('employees.email_corporate', $email) - ->where('employees.relationship', 'Self') - ->where('employees.is_active', 1) - ->whereIn('employees.emp_status', ['active', 'expired']) - ->where('EP.is_active', 1) - ->whereIn('EP.status', ['active', 'expired']); + ->where('email_corporate', $email) + ->where('relationship', 'Self') + ->where('is_active', 1); + + // $builder = $this->employeeModel + // ->join('employee_polices EP', 'EP.employee_id = employees.id', 'inner') + // ->where('employees.email_corporate', $email) + // ->where('employees.relationship', 'Self') + // ->where('employees.is_active', 1) + // ->whereIn('employees.emp_status', ['active', 'expired']) + // ->where('EP.is_active', 1) + // ->whereIn('EP.status', ['active', 'expired']); if (!empty($client_id)) {