Lager - v5.2.0
    Preparing search index...

    Function updateOrderStatus

    • Function

      Updates the status of an order in the API.

      This function sends a PUT request to the API to update the status of an order with the provided details. If the request is successful, it returns void. In case of an error, it catches the error and logs it.

      updateOrderStatus

      Parameters

      • order_id: number

        The ID of the order to update.

      • order_name: string

        The name of the order to update.

      • new_status_id: number

        The new status ID of the order.

      Returns Promise<void>

      A promise that resolves when the order status is updated.

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