Skip to content

Commit e1cac39

Browse files
authored
Bugfix #8972 profile deactivation (#3925)
* Fix #8972 changed profile deactivation base url, changed a request body format * Fix #8972 changed profile deactivation base url, changed a request body format
1 parent 2c6ccf9 commit e1cac39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/ubs/ubs-user/services/client-profile.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { HttpClient } from '@angular/common/http';
22
import { Injectable } from '@angular/core';
3-
import { mainUbsLink, mainUserLink } from 'src/app/main/links';
3+
import { mainUbsLink } from 'src/app/main/links';
44
import { UserProfile } from '../../../ubs/ubs-admin/models/ubs-admin.interface';
5-
import { Observable, switchMap, tap } from 'rxjs';
5+
import { Observable } from 'rxjs';
66
@Injectable({
77
providedIn: 'root'
88
})
@@ -18,6 +18,6 @@ export class ClientProfileService {
1818
}
1919

2020
deactivateProfile(reason: string): Observable<void> {
21-
return this.http.delete<void>(`${mainUserLink}ubs/userProfile/user/delete`, { body: reason });
21+
return this.http.delete<void>(`${mainUbsLink}/ubs/userProfile/user/delete`, { body: { reason } });
2222
}
2323
}

0 commit comments

Comments
 (0)