Fixed small typo

This commit is contained in:
Erik Tiekstra
2021-09-02 15:46:08 +02:00
parent b7ff429db3
commit d9938cc770

View File

@@ -154,7 +154,7 @@ export class EmployeeService extends UnsubscribeDirective {
}
public deleteEmployee(employee: Employee): Observable<Employee | Partial<Employee>> {
return this.httpClient.delete<void>(`${this._apiBaseUrl}/hubba`).pipe(
return this.httpClient.delete<void>(`${this._apiBaseUrl}/${employee.id}`).pipe(
tap(() => {
this._lastDeletedEmployee$.next(employee);
}),