mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
slightly increased the wait time for the emby newsletter
also fixed a potential error in the plex user checker
This commit is contained in:
parent
af023fb9d5
commit
7c37458e3b
2 changed files with 4 additions and 25 deletions
|
@ -31,6 +31,7 @@ using System;
|
|||
using System.Linq;
|
||||
using NLog;
|
||||
using Ombi.Api.Interfaces;
|
||||
using Ombi.Api.Models.Plex;
|
||||
using Ombi.Core;
|
||||
using Ombi.Core.SettingModels;
|
||||
using Ombi.Core.Users;
|
||||
|
@ -89,7 +90,7 @@ namespace Ombi.Services.Jobs
|
|||
var localUsers = LocalUserRepository.GetAll().ToList();
|
||||
|
||||
// Regular users
|
||||
foreach (var user in plexUsers.User)
|
||||
foreach (var user in plexUsers?.User ?? new UserFriends[]{})
|
||||
{
|
||||
var dbUser = dbUsers.FirstOrDefault(x => x.PlexUserId == user.Id);
|
||||
if (dbUser != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue