MERGE_UAT_BUG_FIXES

This commit is contained in:
Ubuntu 2026-07-02 15:52:09 +05:30
commit 7aa677353c

View File

@ -3065,6 +3065,7 @@ class EmployeeRestController extends AdminController
->where('client_id', $this->request->getGet('client_id'))
->where('client_branch_id', $this->request->getGet('client_branch_id'))
->where('family_floater_key', 'self')->where('is_active', 1)
->orderBy('id', 'DESC')
->get()->getRow();
$employeeName = $employeeSelfData->name ?? "";
@ -3218,6 +3219,7 @@ class EmployeeRestController extends AdminController
$emp_reatail_policy_data = $this->getEmpRetailPolicy($employeeSelfData);
$apiServiceController = new ApiServiceController;
// dd($employeeSelfData->id);
$emp_wellness_data = $apiServiceController->getWellnessUrl($employeeSelfData->id ?? null);
return $this->respond(['status' => 'success', 'code' => 200, 'data' => $result, 'emp_name' => $employeeName, 'pre_policy_count' => $prePolicyCount, 'emp_not_enrolled_count' => $empNotEnrolledCount, 'retail_policy_data' => $emp_reatail_policy_data, 'wellness_data' => $emp_wellness_data], 200);