mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Added some more logging around the plex user importer
fixed the discord notification issue #1513
This commit is contained in:
parent
5bdfaeccb8
commit
b944f90bdb
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue