noti ถ้าหา user ไม่เจอให้ส่งว่าง

This commit is contained in:
Kittapath 2023-09-22 16:24:22 +07:00
parent 88def52391
commit 3e6db6a5ef
2 changed files with 4 additions and 2 deletions

View file

@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
if (profile == null) if (profile == null)
{ {
throw new Exception(GlobalMessages.DataNotFound); return new List<InboxResponse>();
// throw new Exception(GlobalMessages.DataNotFound);
} }
var data = await _dbContext.Set<Inbox>() var data = await _dbContext.Set<Inbox>()

View file

@ -42,7 +42,8 @@ namespace BMA.EHR.Application.Repositories.MessageQueue
if (profile == null) if (profile == null)
{ {
throw new Exception(GlobalMessages.DataNotFound); return new List<NotificationResponse>();
// throw new Exception(GlobalMessages.DataNotFound);
} }
var data = await _dbContext.Set<Notification>() var data = await _dbContext.Set<Notification>()