diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-03 14:49:04 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-04-03 14:49:04 -0400 |
commit | 26b4a37cb91dfe5551f3e227512cd5ceff897d54 (patch) | |
tree | c492f6d6487773213f257cad9f86d97426b34ae7 /ufund-ui/src/app/services/cupboard.service.ts | |
parent | f88e5d727ae42d0e27ae7949d0f0d4189dda464d (diff) | |
download | JellySolutions-26b4a37cb91dfe5551f3e227512cd5ceff897d54.tar.gz JellySolutions-26b4a37cb91dfe5551f3e227512cd5ceff897d54.tar.bz2 JellySolutions-26b4a37cb91dfe5551f3e227512cd5ceff897d54.zip |
Changes to cupboard on front end and back end to try and fix bugs
Diffstat (limited to 'ufund-ui/src/app/services/cupboard.service.ts')
-rw-r--r-- | ufund-ui/src/app/services/cupboard.service.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ufund-ui/src/app/services/cupboard.service.ts b/ufund-ui/src/app/services/cupboard.service.ts index 9232c0c..786973e 100644 --- a/ufund-ui/src/app/services/cupboard.service.ts +++ b/ufund-ui/src/app/services/cupboard.service.ts @@ -47,7 +47,8 @@ export class CupboardService { return this.http.delete<boolean>(`${this.url}/${id}`, this.httpOptions()) } - checkoutNeed(id: number, quantity: number) { - return this.http.put(`${this.url}/checkout`, {needID: id, amount: quantity}, this.httpOptions()) + checkoutNeed(data: {id: number, quantity: number}[]) { + console.log("GOT HERE") + return this.http.put(`${this.url}/checkout`, data, this.httpOptions()) } } |