Skip to content

Commit

Permalink
fix(embyauth): remove the accidentally added mediaServerType change c…
Browse files Browse the repository at this point in the history
…ode from another PR (#684)

Accidentally added the mediaServerType change code from another feature branch/PR during the auth
logic refactor that broke emby logins.
  • Loading branch information
Fallenbagel authored Mar 13, 2024
1 parent eee9a02 commit c2e8771
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c2e8771

Please sign in to comment.