Skip to content

The only tool you need to know what is happening and how to fix it.

202 B
Raw Blame
import { reserveStock } from "./inventory.js";

export function fulfillOrder(order) {
  const reservation = reserveStock(order.orderId, order.units);
  return { orderId: order.orderId, reservation };
}