mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
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:
parent
4836ab7e6c
commit
dffc0f3d75
2 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue