แก้ noti
This commit is contained in:
parent
31ac8f9299
commit
2fc1587d18
3 changed files with 14 additions and 8 deletions
|
|
@ -187,9 +187,9 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
|||
{
|
||||
try
|
||||
{
|
||||
var profile = await _dbContext.Set<Profile>().FirstOrDefaultAsync(x => x.Id == ReceiverUserId);
|
||||
if (profile != null)
|
||||
{
|
||||
// var profile = await _dbContext.Set<Profile>().FirstOrDefaultAsync(x => x.Id == ReceiverUserId);
|
||||
//if (profile != null)
|
||||
//{
|
||||
_dbContext.Set<Notification>().Add(new Notification
|
||||
{
|
||||
Body = Body,
|
||||
|
|
@ -224,7 +224,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
|||
_emailSenderService.SendMail(Subject, Body, "kittapath@frappet.com");
|
||||
}
|
||||
await _dbContext.SaveChangesAsync();
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue