Lager - v5.2.0
    Preparing search index...
    • Function

      Processes an order by updating the stock of the products in the order and updating the order status.

      This function loops through all items in the order, updates the stock of each product, and updates the order status. If an error occurs during the process, it is caught and logged.

      pickOrder

      Parameters

      • order: Order

        The order to process.

      Returns Promise<void>

      A promise that resolves when the order is processed.

      If there is an error during the process, it is caught and logged.