Merge pull request #1852 from Kukks/notif-del-bug-fix

fix notification page issue
This commit is contained in:
Nicolas Dorier 2020-08-20 12:59:53 +09:00 committed by GitHub
commit 112495323e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)