Add Patch 2 Customer Repository
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m55s

This commit is contained in:
Leandro Hernan Rojas 2025-04-05 01:20:34 -03:00
parent bd216f9845
commit ed45ada772

View File

@ -51,10 +51,11 @@ namespace Models.Repositories
if (!string.IsNullOrWhiteSpace(document))
{
var loweredDoc = document.ToLower();
query = query.Where(c =>
c.PhSCustomerDocuments.Any(a =>
a.DocumentNumber.ToLower().Contains(document))); }
a.DocumentNumber.Contains(loweredDoc))); // sin ToLower() acá
}
if (!string.IsNullOrWhiteSpace(email))
{
var loweredEmail = email.ToLower();