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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Use Async method in InventoryManageService
support50f00b64b016
diff --git a/src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs b/src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.csindex b7c69744d..abec2355b 100644--- a/src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs+++ b/src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs@@ -722,7 +722,7 @@ namespace Grand.Business.Catalog.Services.Productsforeach (var inventoryJournal in inventoryJournals){- var product = _productRepository.GetById(inventoryJournal.ProductId);+ var product = await _productRepository.GetByIdAsync(inventoryJournal.ProductId);if (product == null)continue;