aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/services/users.service.ts
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-18 12:38:32 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-18 12:38:32 -0400
commitcd24514f7b75e1cde515c99607bf3b2bc0f4fc88 (patch)
tree72fe95bb3f532bec92cd68de46da49b50e2d9a13 /ufund-ui/src/app/services/users.service.ts
parentcbb02fb9fe06601ac419e804a7c87ff8452ed889 (diff)
parent0b41684e57c79374aee3a564307cd4fdef603e7c (diff)
downloadJellySolutions-cd24514f7b75e1cde515c99607bf3b2bc0f4fc88.tar.gz
JellySolutions-cd24514f7b75e1cde515c99607bf3b2bc0f4fc88.tar.bz2
JellySolutions-cd24514f7b75e1cde515c99607bf3b2bc0f4fc88.zip
Merge branch 'funding_basket' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b into funding_basket
Diffstat (limited to 'ufund-ui/src/app/services/users.service.ts')
-rw-r--r--ufund-ui/src/app/services/users.service.ts7
1 files changed, 4 insertions, 3 deletions
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<User>(`${this.url}/${id}`, this.httpOptions)
}
- updateUser(id: string, user: User): Observable<User> {
- console.log(id, user)
+ updateUser(user: User): Observable<User> {
+ console.log(user, user.basket)
console.log(this.apiKey)
- return this.http.put<User>(`${this.url}/${id}`,user, this.httpOptions)
+
+ return this.http.put<User>(`${this.url}/${user.username}`,user, this.httpOptions2)
}
deleteUser(id: number): Observable<boolean> {