dont reserv other than ps5
This commit is contained in:
@@ -19,9 +19,13 @@ func NewCartMutationContext(reservationService inventory.CartReservationService)
|
||||
}
|
||||
|
||||
func (c *CartMutationContext) ReserveItem(ctx context.Context, cartId CartId, sku string, locationId *string, quantity uint16) (*time.Time, error) {
|
||||
|
||||
if quantity <= 0 || c.reservationService == nil {
|
||||
return nil, nil
|
||||
}
|
||||
if sku != "919641" {
|
||||
return nil, nil
|
||||
}
|
||||
l := inventory.LocationID("se")
|
||||
if locationId != nil {
|
||||
l = inventory.LocationID(*locationId)
|
||||
|
||||
Reference in New Issue
Block a user