aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/services
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/services')
-rw-r--r--ufund-ui/src/app/services/users.service.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/ufund-ui/src/app/services/users.service.ts b/ufund-ui/src/app/services/users.service.ts
index c570ccf..bc31870 100644
--- a/ufund-ui/src/app/services/users.service.ts
+++ b/ufund-ui/src/app/services/users.service.ts
@@ -40,8 +40,10 @@ export class UsersService {
return this.http.get<User>(`${this.url}/${id}`, this.httpOptions)
}
- updateUser(id: number): Observable<User> {
- return this.http.put<User>(`${this.url}/${id}`, this.httpOptions)
+ updateUser(id: string, user: User): Observable<User> {
+ console.log(id, user)
+ console.log(this.apiKey)
+ return this.http.put<User>(`${this.url}/${id}`,user, this.httpOptions)
}
deleteUser(id: number): Observable<boolean> {