Updated api for employee
This commit is contained in:
@@ -50,7 +50,7 @@ export class EmployeeService {
|
||||
|
||||
public getDetailedEmployeeData(id: string): Observable<Employee> {
|
||||
return this.httpClient
|
||||
.get<EmployeesApiResponse>(`${this._employeeApiUrl}/${id}`, API_HEADERS)
|
||||
.get<EmployeesApiResponse>(`${this._employeeApiUrl}`, { ...API_HEADERS, params: { OperatorId: id } })
|
||||
.pipe(map(({ pxResults }) => mapEmployeeReponseToEmployee(pxResults[0])));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user