Use attribute to map notifcations to their string

This commit is contained in:
nicolas.dorier
2020-06-15 17:05:12 +09:00
parent 9070b475ea
commit 7cdfa7d4c5
8 changed files with 49 additions and 15 deletions

View File

@@ -55,7 +55,7 @@ namespace BTCPayServer.Services.Notifications
.Where(a => a.ApplicationUserId == userId && !a.Seen)
.OrderByDescending(a => a.Created)
.Take(5)
.Select(a => a.ViewModel())
.Select(a => a.ToViewModel())
.ToList();
}
catch (System.IO.InvalidDataException)