FIX_MINOR_ISSUE

This commit is contained in:
velz 2024-10-14 17:49:57 +05:30
parent c80dad91bc
commit 8598c4bf18
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class CloseDbConnection implements FilterInterface
// Get all database configurations
$db = \Config\Database::connect();
$log = \Config\Services::mylogger();
$log->logme('error','CloseDbConnections....!');
// $log->logme('error','CloseDbConnections....!');
$db->close();
}
}

View File

@ -161,7 +161,7 @@ class EmployeeModel extends Model
// for EMP rest API process do not change
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();
}