Updated api for employee

This commit is contained in:
Erik Tiekstra
2021-05-11 15:19:53 +02:00
parent 178b15fcc5
commit eb18ea03a2

View File

@@ -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])));
}