fix default id

This commit is contained in:
Suphonchai Phoonsawat 2024-01-17 13:01:24 +07:00
parent 9412f09f71
commit c6619f1253

View file

@ -98,7 +98,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
{ {
Subject = subject_str, Subject = subject_str,
Body = body_str, Body = body_str,
ReceiverUserId = appr.Id, ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbc953-61ac-47eb-82d7-0e72df7669b5") : appr.Id,
Payload = "", Payload = "",
}; };
_appContext.Set<Inbox>().Add(inbox); _appContext.Set<Inbox>().Add(inbox);
@ -106,7 +106,7 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
var noti = new Notification var noti = new Notification
{ {
Body = body_str, Body = body_str,
ReceiverUserId = appr.Id, ReceiverUserId = appr.Id == Guid.Empty ? Guid.Parse("08dbc953-61ac-47eb-82d7-0e72df7669b5") : appr.Id,
Type = "", Type = "",
Payload = "", Payload = "",
}; };