try to reserve
This commit is contained in:
@@ -129,6 +129,13 @@ func (a *App) HandleCheckoutRequests(amqpUrl string, mux *http.ServeMux) {
|
||||
}
|
||||
log.Printf("Klarna order validation: %s", order.ID)
|
||||
|
||||
// inventoryRequests := getInventoryRequests(grain.Items)
|
||||
// failingRequest, err := s.inventoryService.ReservationCheck(inventoryRequests...)
|
||||
// if err != nil {
|
||||
// logger.WarnContext(ctx, "inventory check failed", string(failingRequest.SKU), string(failingRequest.LocationID))
|
||||
// return nil, err
|
||||
// }
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user