logger.info("Processing end of day event...");
List<Order> orders = orderRepository.findActiveGfdOrders();
logger.info("Marking {} orders as DoneForDay...", orders.size());
for (Order order : orders) {
order.doneForDay();
orderEventPublisher.publish(new OrderDoneForDay(order));
}
logger.info("Marked {} orders as DoneForDay", orders.size());
}