aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/services/cupboard.service.ts
diff options
context:
space:
mode:
authorHayden Hartman <haydenhartman10@gmail.com>2025-04-04 15:38:02 -0400
committerGitHub <noreply@github.com>2025-04-04 15:38:02 -0400
commit24ab92f79ccbb1a109ed1186b7b8030cae768eab (patch)
tree5bdda3e7c6e560f06a1fef8074cc4169f0a705b3 /ufund-ui/src/app/services/cupboard.service.ts
parent2423f4ee67e7e9079e12ecde51326472308cf22f (diff)
parent8c38792e8e257cf264d5739e80e085c824ccecd8 (diff)
downloadJellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.tar.gz
JellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.tar.bz2
JellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.zip
Merge pull request #26 from RIT-SWEN-261-02/checkout-improvement
Checkout improvement
Diffstat (limited to 'ufund-ui/src/app/services/cupboard.service.ts')
-rw-r--r--ufund-ui/src/app/services/cupboard.service.ts4
1 files changed, 2 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..1060476 100644
--- a/ufund-ui/src/app/services/cupboard.service.ts
+++ b/ufund-ui/src/app/services/cupboard.service.ts
@@ -47,7 +47,7 @@ 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: {needID: number, quantity: number}[]) {
+ return this.http.put(`${this.url}/checkout`, data, this.httpOptions())
}
}