diff options
Diffstat (limited to '')
| -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())      }  }  | 
