This commit is contained in:
Suphonchai Phoonsawat 2025-03-27 15:21:32 +07:00
parent 9e466a2422
commit 4e3faab969
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.LeaveRequests
var rawData = _dbContext.Set<LeaveRequest>().AsNoTracking()
.Include(x => x.Type)
.Where(x => x.LeaveStatus != "DRAFT")
.OrderByDescending(x => x.CreatedAt.Date)
.OrderByDescending(x => x.CreatedAt)
.AsQueryable();
if (year != 0)