FIX_MINOR_ISSUE
This commit is contained in:
parent
c80dad91bc
commit
8598c4bf18
@ -19,7 +19,7 @@ class CloseDbConnection implements FilterInterface
|
|||||||
// Get all database configurations
|
// Get all database configurations
|
||||||
$db = \Config\Database::connect();
|
$db = \Config\Database::connect();
|
||||||
$log = \Config\Services::mylogger();
|
$log = \Config\Services::mylogger();
|
||||||
$log->logme('error','CloseDbConnections....!');
|
// $log->logme('error','CloseDbConnections....!');
|
||||||
$db->close();
|
$db->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -161,7 +161,7 @@ class EmployeeModel extends Model
|
|||||||
// for EMP rest API process do not change
|
// for EMP rest API process do not change
|
||||||
public function checkExistingEmployee($arr,$client_branch_id)
|
public function checkExistingEmployee($arr,$client_branch_id)
|
||||||
{
|
{
|
||||||
return $this->where('emp_code',$arr['emp_code'])->where('name',$arr['name'])->where('client_id', $arr['client_id'])->where('client_branch_id', $client_branch_id)->first();
|
return $this->where('emp_code',$arr['emp_code'])->where('name',$arr['name'])->where('client_id', $arr['client_id'])->where('client_branch_id', $client_branch_id)->where('emp_status !=', 'truncated')->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user