Fixed an issue where some users couldn't update thier plex admin account. looks like their user id changed in plex. We now update the main user.

#1249
This commit is contained in:
Jamie.Rees 2017-04-12 08:21:17 +01:00
parent 4836ab7e6c
commit dffc0f3d75
2 changed files with 14 additions and 2 deletions

View file

@ -194,6 +194,18 @@ namespace Ombi.Services.Jobs
Repo.Insert(a);
}
else
{
// does the account need updating?
if (dbMainAcc != null)
{
dbMainAcc.PlexUserId = mainPlexAccount.Id;
dbMainAcc.EmailAddress = mainPlexAccount.Email;
dbMainAcc.Username = mainPlexAccount.Username;
Repo.Update(dbMainAcc);
}
}
}

View file

@ -152,7 +152,7 @@ namespace Ombi.UI.Modules.Admin
}
if (key.Equals(JobNames.PlexUserChecker, StringComparison.CurrentCultureIgnoreCase))
{
RequestLimit.Start();
PlexUserChecker.Start();
}
if (key.Equals(JobNames.EmbyEpisodeCacher, StringComparison.CurrentCultureIgnoreCase))
{