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.

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.cs
index 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.Products
foreach (var inventoryJournal in inventoryJournals)
{
- var product = _productRepository.GetById(inventoryJournal.ProductId);
+ var product = await _productRepository.GetByIdAsync(inventoryJournal.ProductId);
if (product == null)
continue;