Skip to content

Commit

Permalink
fix: set correct user type when importing from emby (#949)
Browse files Browse the repository at this point in the history
fix #948

Co-authored-by: JoaquinOlivero <[email protected]>
  • Loading branch information
JoaquinOlivero and JoaquinOlivero authored Aug 26, 2024
1 parent a02a0dd commit e57d265
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/routes/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import JellyfinAPI from '@server/api/jellyfin';
import PlexTvAPI from '@server/api/plextv';
import TautulliAPI from '@server/api/tautulli';
import { MediaType } from '@server/constants/media';
import { MediaServerType } from '@server/constants/server';
import { UserType } from '@server/constants/user';
import { getRepository } from '@server/datasource';
import Media from '@server/entity/Media';
Expand Down Expand Up @@ -550,7 +551,10 @@ router.post(
default: 'mm',
size: 200,
}),
userType: UserType.JELLYFIN,
userType:
settings.main.mediaServerType === MediaServerType.JELLYFIN
? UserType.JELLYFIN
: UserType.EMBY,
});

await userRepository.save(newUser);
Expand Down

0 comments on commit e57d265

Please sign in to comment.