Merge pull request #1298 from tidusjar/dev

Some emby notification fixes
pull/1300/head
Jamie 8 years ago committed by GitHub
commit 65c26fb30b

@ -208,7 +208,7 @@ namespace Ombi.Core.Users
var localUsers = LocalUserRepository.GetAll().ToList();
var plexUsers = PlexUserRepository.GetAll().ToList();
var embyUsers = PlexUserRepository.GetAll().ToList();
var embyUsers = EmbyUserRepository.GetAll().ToList();
var filteredLocal = localUsers.Where(x => ((Features)x.Features).HasFlag(features));
var filteredPlex = plexUsers.Where(x => ((Features)x.Features).HasFlag(features));

@ -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 });

@ -198,7 +198,7 @@
dataType: "json",
success: function (response) {
$(response).each(function (index, item) {
item.date = moment.utc(item.data).local().format('lll');
item.date = moment.utc(item.date).local().format('lll');
var html = changesTemplate(item);
$area.append(html);
});

Loading…
Cancel
Save