แก้ฟังก์ชันnoti ถ้าหาprofileไม่เจอให้ข้ามเลย
This commit is contained in:
parent
b25f52761f
commit
7f53cf96c4
3 changed files with 50 additions and 50 deletions
|
|
@ -59,9 +59,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var profile = await _dbContext.Set<Profile>().FirstOrDefaultAsync(x => x.Id == ReceiverUserId);
|
var profile = await _dbContext.Set<Profile>().FirstOrDefaultAsync(x => x.Id == ReceiverUserId);
|
||||||
if (profile == null)
|
if (profile != null)
|
||||||
throw new Exception(GlobalMessages.DataNotFound);
|
{
|
||||||
|
|
||||||
if (IsSendNotification == true)
|
if (IsSendNotification == true)
|
||||||
{
|
{
|
||||||
_dbContext.Set<Notification>().Add(new Notification
|
_dbContext.Set<Notification>().Add(new Notification
|
||||||
|
|
@ -112,6 +111,7 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
|
||||||
}
|
}
|
||||||
await _dbContext.SaveChangesAsync();
|
await _dbContext.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
throw;
|
throw;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI",
|
"Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI",
|
||||||
"Issuer": "https://identity.frappet.com/realms/bma-ehr"
|
"Issuer": "https://id.frappet.synology.me/realms/bma-ehr"
|
||||||
},
|
},
|
||||||
"EPPlus": {
|
"EPPlus": {
|
||||||
"ExcelPackage": {
|
"ExcelPackage": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"realm": "bma-ehr",
|
"realm": "bma-ehr",
|
||||||
"auth-server-url": "https://identity.frappet.com",
|
"auth-server-url": "https://id.frappet.synology.me",
|
||||||
"ssl-required": "external",
|
"ssl-required": "external",
|
||||||
"resource": "bma-ehr",
|
"resource": "bma-ehr",
|
||||||
"public-client": true
|
"public-client": true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue