fix notification page issue

fixes #1820
This commit is contained in:
Kukks 2020-08-19 13:21:05 +02:00
parent c4d2ece9c7
commit 565dbd88ff

View file

@ -99,9 +99,9 @@ namespace BTCPayServer.Controllers
Skip = skip,
Count = count,
Items = _db.Notifications
.Where(a => a.ApplicationUserId == userId)
.OrderByDescending(a => a.Created)
.Skip(skip).Take(count)
.Where(a => a.ApplicationUserId == userId)
.Select(a => _notificationManager.ToViewModel(a))
.ToList(),
Total = _db.Notifications.Count(a => a.ApplicationUserId == userId)