aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/services/cupboard.service.ts
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-04-03 14:49:04 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-04-03 14:49:04 -0400
commit26b4a37cb91dfe5551f3e227512cd5ceff897d54 (patch)
treec492f6d6487773213f257cad9f86d97426b34ae7 /ufund-ui/src/app/services/cupboard.service.ts
parentf88e5d727ae42d0e27ae7949d0f0d4189dda464d (diff)
downloadJellySolutions-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.ts5
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())
}
}