Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Minor changes

KrzysztofPajak579fe2273c65
diff --git a/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/DeliveryCommandHandler.cs b/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/DeliveryCommandHandler.cs
index 311d755ed..c5bf2cfef 100644
--- a/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/DeliveryCommandHandler.cs
+++ b/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/DeliveryCommandHandler.cs
@@ -70,12 +70,12 @@ namespace Grand.Business.Checkout.Commands.Handlers.Shipping
//send email notification
await _messageProviderService.SendShipmentDeliveredCustomerMessage(request.Shipment, order);
}
- //event
- await _mediator.PublishShipmentDelivered(request.Shipment);
-
//check order status
await _mediator.Send(new CheckOrderStatusCommand() { Order = order });
+ //event
+ await _mediator.PublishShipmentDelivered(request.Shipment);
+
return true;
}
}
diff --git a/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/ShipCommandHandler.cs b/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/ShipCommandHandler.cs
index c65e17cce..103b42845 100644
--- a/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/ShipCommandHandler.cs
+++ b/src/Business/Grand.Business.Checkout/Commands/Handlers/Shipping/ShipCommandHandler.cs
@@ -74,12 +74,12 @@ namespace Grand.Business.Checkout.Commands.Handlers.Shipping
//notify customer
await _messageProviderService.SendShipmentSentCustomerMessage(request.Shipment, order);
}
- //event
- await _mediator.PublishShipmentSent(request.Shipment);
-
//check order status
await _mediator.Send(new CheckOrderStatusCommand() { Order = order });
+ //event
+ await _mediator.PublishShipmentSent(request.Shipment);
+
return true;
}
}