fix defect

This commit is contained in:
Suphonchai Phoonsawat 2023-12-18 15:50:42 +07:00
parent c798439c19
commit 0a080b09e4
4 changed files with 57 additions and 12 deletions

View file

@ -70,8 +70,8 @@ namespace BMA.EHR.Application.Repositories.Leaves
{
if (entity is EntityBase)
{
(entity as EntityBase).LastUpdateUserId = UserId!;
(entity as EntityBase).LastUpdateFullName = FullName!;
(entity as EntityBase).LastUpdateUserId = UserId ?? "";
(entity as EntityBase).LastUpdateFullName = FullName ?? "System Administrator";
(entity as EntityBase).LastUpdatedAt = DateTime.Now;
}