Skip to content

Commit

Permalink
Removed unnecessary check in GET customers
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarwal4 committed Apr 9, 2024
1 parent e2277fa commit 7e4357e
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public async Task<Customer> Handle(GetCustomerQuery request, CancellationToken c
{
var customer = await _customerRepository.GetAsync(request.CustomerCode);

if (customer.Status != CustomerStatus.ACTIVE.ToString() && customer.Status != CustomerStatus.UNDERREVIEW.ToString())
{
throw new CustomErrorsException(ApplicationErrorCode.InvalidStatusError.ToString(), request.CustomerCode, "Customer status with this reference is not valid");
}

return customer;
}
}
Expand Down

0 comments on commit 7e4357e

Please sign in to comment.