diff --git a/app/Controllers/Employers.php b/app/Controllers/Employers.php index 9df8aa9..1e31607 100644 --- a/app/Controllers/Employers.php +++ b/app/Controllers/Employers.php @@ -9,10 +9,14 @@ class Employers extends BaseController { $data = $this->request->getPost(); - if ($data['employer_uid'] != '') { - - $checkData = $this->APIcall("POST", "http://10.10.10.48:6332/api/verify/employer", json_encode($data)); + if ($data['aplication_uid'] != '') { + $findEmp ="SELECT * from applications WHERE status =2 AND uid = '".$data['aplication_uid']."'"; + $query = $this->db->query($findEmp); + $row = $query->getResult('array'); + if ($row ){ + $checkData = $this->APIcall("POST", "http://10.10.10.48:6332/api/verify/employer", json_encode($row)); + } $udata = [ 'employer_uid' => $data['employer_uid']