From c2e87714b4c4aa11bf68dcd82b76979f82990f3c Mon Sep 17 00:00:00 2001 From: Fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Thu, 14 Mar 2024 01:08:09 +0500 Subject: [PATCH] fix(embyauth): remove the accidentally added mediaServerType change code from another PR (#684) Accidentally added the mediaServerType change code from another feature branch/PR during the auth logic refactor that broke emby logins. --- server/routes/auth.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index c3d9d0f61..9ec9ff990 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -345,11 +345,11 @@ authRoutes.post('/jellyfin', async (req, res, next) => { user.username = ''; } - // If JELLYFIN_TYPE is set to 'emby' then set mediaServerType to EMBY - if (process.env.JELLYFIN_TYPE === 'emby') { - settings.main.mediaServerType = MediaServerType.EMBY; - settings.save(); - } + // TODO: If JELLYFIN_TYPE is set to 'emby' then set mediaServerType to EMBY + // if (process.env.JELLYFIN_TYPE === 'emby') { + // settings.main.mediaServerType = MediaServerType.EMBY; + // settings.save(); + // } await userRepository.save(user); } else if (!settings.main.newPlexLogin) {