From 0b41684e57c79374aee3a564307cd4fdef603e7c Mon Sep 17 00:00:00 2001 From: Akash Keshav <112591754+domesticchores@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:41:04 -0400 Subject: THE UPDATE USER WORKS! -ak --- ufund-ui/src/app/services/users.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ufund-ui/src/app/services/users.service.ts') diff --git a/ufund-ui/src/app/services/users.service.ts b/ufund-ui/src/app/services/users.service.ts index bc31870..2a95202 100644 --- a/ufund-ui/src/app/services/users.service.ts +++ b/ufund-ui/src/app/services/users.service.ts @@ -40,10 +40,11 @@ export class UsersService { return this.http.get(`${this.url}/${id}`, this.httpOptions) } - updateUser(id: string, user: User): Observable { - console.log(id, user) + updateUser(user: User): Observable { + console.log(user, user.basket) console.log(this.apiKey) - return this.http.put(`${this.url}/${id}`,user, this.httpOptions) + + return this.http.put(`${this.url}/${user.username}`,user, this.httpOptions2) } deleteUser(id: number): Observable { -- cgit v1.2.3