Is it Ok to UpdateOrder inside an EntityUpdated<Order> event handler?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 anni tempo fa
I have a HandleEvent for EntityUpdated<Order>
Based on Order & Payment status, I will update a field in the OrderProductVariants' ProductVariants.
Thus, I need to call _orderService.UpdateOrder(order)
Which will of course fire off another Event.

Is that a bad thing?   (Should I instead call  _orderRepository.Update directly ?)
12 anni tempo fa
Although it's not recommended. But you can surely call _orderRepository.Update in this case.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.