From 4e80e7b7c3239a46a645ab6d1054993734ad4dd6 Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 13 Jul 2023 19:57:18 +0100 Subject: [PATCH] fix(user-importer): Do not delete the Plex Admin as part of the user Importer cleanup #4870 (#4981) --- 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 +}