Correct JellyfinUser to type 5

Make everything consistent here with the Store entity number.
pull/3924/head
Joshua M. Boniface 4 years ago
parent fce9e88b1e
commit 85e98e587f

@ -20,6 +20,6 @@ namespace Ombi.Core.Models
LocalUser = 1, LocalUser = 1,
PlexUser = 2, PlexUser = 2,
EmbyUser = 3, EmbyUser = 3,
JellyfinUser = 4 JellyfinUser = 5
} }
} }

@ -105,7 +105,7 @@ namespace Ombi.Schedule.Jobs.Jellyfin
if (!jellyfinUser.ConnectUserName.HasValue() && !jellyfinUser.Name.HasValue()) if (!jellyfinUser.ConnectUserName.HasValue() && !jellyfinUser.Name.HasValue())
{ {
_log.LogInformation("Could not create Jellyfin user since the have no username, PlexUserId: {0}", jellyfinUser.Id); _log.LogInformation("Could not create Jellyfin user since the have no username, JellyfinUserId: {0}", jellyfinUser.Id);
continue; continue;
} }
var isConnectUser = jellyfinUser.ConnectUserName.HasValue(); var isConnectUser = jellyfinUser.ConnectUserName.HasValue();
@ -114,7 +114,6 @@ namespace Ombi.Schedule.Jobs.Jellyfin
{ {
UserName = jellyfinUser.Name, UserName = jellyfinUser.Name,
ProviderUserId = jellyfinUser.Id, ProviderUserId = jellyfinUser.Id,
Alias = isConnectUser ? jellyfinUser.Name : string.Empty,
MovieRequestLimit = userManagementSettings.MovieRequestLimit, MovieRequestLimit = userManagementSettings.MovieRequestLimit,
EpisodeRequestLimit = userManagementSettings.EpisodeRequestLimit EpisodeRequestLimit = userManagementSettings.EpisodeRequestLimit
}; };

@ -48,7 +48,7 @@ export enum UserType {
LocalUser = 1, LocalUser = 1,
PlexUser = 2, PlexUser = 2,
EmbyUser = 3, EmbyUser = 3,
JellyfinUser = 4, JellyfinUser = 5,
} }
export interface IIdentityResult { export interface IIdentityResult {

Loading…
Cancel
Save