Skip to content

Commit

Permalink
#122: update get orders handler
Browse files Browse the repository at this point in the history
  • Loading branch information
an2508374 committed Jan 24, 2024
1 parent f4c4a12 commit d01ad09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public async Task<IEnumerable<OrderDto>> HandleAsync(GetOrders query, Cancellati
return Enumerable.Empty<OrderDto>();
}

documents = documents.Where(p => p.CustomerId == query.CustomerId);
documents = documents.Where(p => p.CustomerId == query.CustomerId &&
p.Status != OrderStatus.WaitingForDecision && p.Status != OrderStatus.Approved);
var orders = await documents.ToListAsync();
var ordersDto = orders.Select(p => p.AsDto());

Expand Down

0 comments on commit d01ad09

Please sign in to comment.