diff --git a/backend/core/src/Core.Application/Queries/CustomerQueries/GetCustomerQuery.cs b/backend/core/src/Core.Application/Queries/CustomerQueries/GetCustomerQuery.cs index d65e8f42..e4f3638f 100644 --- a/backend/core/src/Core.Application/Queries/CustomerQueries/GetCustomerQuery.cs +++ b/backend/core/src/Core.Application/Queries/CustomerQueries/GetCustomerQuery.cs @@ -33,11 +33,6 @@ public async Task 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; } }