Fixed the error of checking the updated date to uploaded date

This commit is contained in:
ashutosh.nehete 2025-09-19 18:02:29 +05:30
parent 64e6255458
commit a1ab143df5

View File

@ -165,9 +165,8 @@ namespace Marco.Pms.Services.Controllers
if (documentFilter.IsUploadedAt)
{
documentQuery = documentQuery.Where(da =>
da.UpdatedAt.HasValue &&
da.UpdatedAt.Value.Date >= documentFilter.StartDate.Value.Date &&
da.UpdatedAt.Value.Date <= documentFilter.EndDate.Value.Date);
da.UploadedAt.Date >= documentFilter.StartDate.Value.Date &&
da.UploadedAt.Date <= documentFilter.EndDate.Value.Date);
}
else
{