Fixed the issue where the recent changes page was not showing the correct date. #1296

This commit is contained in:
Jamie.Rees 2017-03-29 09:57:27 +01:00
commit a5b08a54b6
2 changed files with 2 additions and 2 deletions

View file

@ -692,7 +692,7 @@ namespace Ombi.UI.Modules
// Let's find that user!
var user = UserHelper.GetUser(username);
userId = user.UserId;
userId = user?.UserId ?? string.Empty;
}
UserLogins.Insert(new UserLogins { UserId = userId, Type = type, LastLoggedIn = DateTime.UtcNow });