Added some more logging around the plex user importer

fixed the discord notification issue #1513
pull/1529/head
tidusjar 7 years ago
parent 5bdfaeccb8
commit b944f90bdb

@ -20,7 +20,7 @@ namespace Ombi.Api.Discord
request.AddJsonBody(body);
request.AddHeader("Content-Type", "application/json");
request.ApplicationJsonContentType();
await Api.Request(request);
}

@ -75,9 +75,10 @@ namespace Ombi.Schedule.Jobs.Plex
UserType = UserType.PlexUser,
UserName = plexUser.Username,
ProviderUserId = plexUser.Id,
Email = plexUser.Email,
Email = plexUser?.Email ?? string.Empty,
Alias = string.Empty
};
_log.LogInformation("Creating Plex user {0}", newUser.UserName);
var result = await _userManager.CreateAsync(newUser);
if (!result.Succeeded)
{

Loading…
Cancel
Save