fix : Update LeaveRequest Error Tracking Entity Id
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
Suphonchai Phoonsawat 2024-09-13 09:56:30 +07:00
parent d67e0450e5
commit 069f427459
5 changed files with 19 additions and 8 deletions

View file

@ -77,6 +77,7 @@ namespace BMA.EHR.Application.Repositories.Leaves
(entity as EntityBase).LastUpdatedAt = DateTime.Now;
}
_dbContext.Detach(entity);
_dbSet.Update(entity);
await _dbContext.SaveChangesAsync();