temporal fix to get the order in local dbset of orders for UpdateOrderWhenBuyerAndPaymentMethodVerifiedDomainEventHandler.cs
This commit is contained in:
parent
4398b25fc1
commit
10759109ab
@ -37,6 +37,14 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Repositor
|
|||||||
.Orders
|
.Orders
|
||||||
.Include(x => x.Address)
|
.Include(x => x.Address)
|
||||||
.FirstOrDefaultAsync(o => o.Id == orderId);
|
.FirstOrDefaultAsync(o => o.Id == orderId);
|
||||||
|
if (order == null)
|
||||||
|
{
|
||||||
|
|
||||||
|
order = _context
|
||||||
|
.Orders
|
||||||
|
.Local
|
||||||
|
.FirstOrDefault(o => o.Id == orderId);
|
||||||
|
}
|
||||||
if (order != null)
|
if (order != null)
|
||||||
{
|
{
|
||||||
await _context.Entry(order)
|
await _context.Entry(order)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user