slightly increased the wait time for the emby newsletter

also fixed a potential error in the plex user checker
This commit is contained in:
Jamie.Rees 2017-03-30 08:07:59 +01:00
commit 7c37458e3b
2 changed files with 4 additions and 25 deletions

View file

@ -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)