From 82aa5d241d4b7fb28528ccc44c277432cab9d772 Mon Sep 17 00:00:00 2001 From: Jamie Date: Wed, 12 Jul 2023 13:57:45 +0100 Subject: [PATCH] fix(user-importer): Do not delete the Plex Admin as part of the user Importer cleanup #4870 --- src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs b/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs index 68a7026a3..d1bbd9e72 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs @@ -71,11 +71,7 @@ namespace Ombi.Schedule.Jobs.Plex if (userManagementSettings.ImportPlexAdmin) { - OmbiUser newOrUpdatedAdmin = await ImportAdmin(userManagementSettings, server, allUsers); - if (newOrUpdatedAdmin != null) - { - newOrUpdatedUsers.Add(newOrUpdatedAdmin); - } + await ImportAdmin(userManagementSettings, server, allUsers); } if (userManagementSettings.ImportPlexUsers) { @@ -264,4 +260,4 @@ namespace Ombi.Schedule.Jobs.Plex GC.SuppressFinalize(this); } } -} \ No newline at end of file +}