Skip to content

Commit

Permalink
Update src/Modules/SimplCommerce.Module.Orders/Services/OrderService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Feb 27, 2025
1 parent 72a80c0 commit 57c413c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public async Task<Result<Order>> CreateOrder(Guid checkoutId, string paymentMeth
PaymentMethod = paymentMethod,
PaymentFeeAmount = paymentFeeAmount
};
using (var transaction = _checkoutItemRepository.BeginTransaction()){
using (var transaction = _checkoutItemRepository.BeginTransaction())
{
foreach (var checkoutItem in checkout.CheckoutItems)
{
if (!checkoutItem.Product.IsAllowToOrder || !checkoutItem.Product.IsPublished || checkoutItem.Product.IsDeleted)
Expand Down

0 comments on commit 57c413c

Please sign in to comment.