try to reserve
All checks were successful
Build and Publish / Metadata (push) Successful in 14s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 57s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m50s

This commit is contained in:
matst80
2025-11-11 09:29:51 +01:00
parent 5d4d917f6a
commit ab5d9cb2b7
3 changed files with 56 additions and 7 deletions

View File

@@ -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)
})
}