Skip to content

Commit

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

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

Expand Down

0 comments on commit a3136d9

Please sign in to comment.