diff --git a/apps/mina-sidor-fa/src/app/shared/services/api/employee.service.ts b/apps/mina-sidor-fa/src/app/shared/services/api/employee.service.ts index b8fa791..b980cb3 100644 --- a/apps/mina-sidor-fa/src/app/shared/services/api/employee.service.ts +++ b/apps/mina-sidor-fa/src/app/shared/services/api/employee.service.ts @@ -154,7 +154,7 @@ export class EmployeeService extends UnsubscribeDirective { } public deleteEmployee(employee: Employee): Observable> { - return this.httpClient.delete(`${this._apiBaseUrl}/hubba`).pipe( + return this.httpClient.delete(`${this._apiBaseUrl}/${employee.id}`).pipe( tap(() => { this._lastDeletedEmployee$.next(employee); }),