mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed #3786
This commit is contained in:
parent
10db8611ca
commit
4c14825439
3 changed files with 3 additions and 3 deletions
|
@ -306,7 +306,7 @@ namespace Ombi.Notifications.Agents
|
|||
{
|
||||
if (await SubsribedUsers.AnyAsync())
|
||||
{
|
||||
foreach (var user in SubsribedUsers.Include(x => x.NotificationUserIds))
|
||||
foreach (var user in SubsribedUsers)
|
||||
{
|
||||
var notificationId = user.NotificationUserIds;
|
||||
if (notificationId.Any())
|
||||
|
|
|
@ -336,7 +336,7 @@ namespace Ombi.Notifications.Agents
|
|||
{
|
||||
if (await SubsribedUsers.AnyAsync())
|
||||
{
|
||||
foreach (var user in SubsribedUsers.Include(x => x.NotificationUserIds))
|
||||
foreach (var user in SubsribedUsers)
|
||||
{
|
||||
var notificationId = user.NotificationUserIds;
|
||||
if (notificationId.Any())
|
||||
|
|
|
@ -191,7 +191,7 @@ namespace Ombi.Notifications
|
|||
|
||||
protected IQueryable<OmbiUser> GetSubscriptions(int requestId, RequestType type)
|
||||
{
|
||||
var subs = RequestSubscription.GetAll().Include(x => x.User).Where(x => x.RequestId == requestId && type == x.RequestType);
|
||||
var subs = RequestSubscription.GetAll().Include(x => x.User).ThenInclude(x => x.NotificationUserIds).Where(x => x.RequestId == requestId && type == x.RequestType);
|
||||
return subs.Select(x => x.User);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue