aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-17 02:06:35 -0500
committerGitHub <noreply@github.com>2016-11-17 02:06:35 -0500
commitd8f40438d499c7a5caa48fe7b1f05ede83a02f1a (patch)
tree29e8c660f108f9efe1d099e20d0a2b04be7bb33e /Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs
parent43ee35a19c4e5b3a1a4977fbf38bea70c700c6ca (diff)
parent5bcc419857f9445bc5964d0518c656090b2ae4ee (diff)
Merge pull request #2293 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs')
-rw-r--r--Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs b/Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs
index dee0d4cfd..cd4ac28dc 100644
--- a/Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs
+++ b/Emby.Server.Core/Notifications/SqliteNotificationsRepository.cs
@@ -260,16 +260,16 @@ namespace Emby.Server.Core.Notifications
{
transaction = connection.BeginTransaction();
- replaceNotificationCommand.GetParameter(0).Value = new Guid(notification.Id);
- replaceNotificationCommand.GetParameter(1).Value = new Guid(notification.UserId);
- replaceNotificationCommand.GetParameter(2).Value = notification.Date.ToUniversalTime();
- replaceNotificationCommand.GetParameter(3).Value = notification.Name;
- replaceNotificationCommand.GetParameter(4).Value = notification.Description;
- replaceNotificationCommand.GetParameter(5).Value = notification.Url;
- replaceNotificationCommand.GetParameter(6).Value = notification.Level.ToString();
- replaceNotificationCommand.GetParameter(7).Value = notification.IsRead;
- replaceNotificationCommand.GetParameter(8).Value = string.Empty;
- replaceNotificationCommand.GetParameter(9).Value = string.Empty;
+ replaceNotificationCommand.GetParameter("@Id").Value = new Guid(notification.Id);
+ replaceNotificationCommand.GetParameter("@UserId").Value = new Guid(notification.UserId);
+ replaceNotificationCommand.GetParameter("@Date").Value = notification.Date.ToUniversalTime();
+ replaceNotificationCommand.GetParameter("@Name").Value = notification.Name;
+ replaceNotificationCommand.GetParameter("@Description").Value = notification.Description;
+ replaceNotificationCommand.GetParameter("@Url").Value = notification.Url;
+ replaceNotificationCommand.GetParameter("@Level").Value = notification.Level.ToString();
+ replaceNotificationCommand.GetParameter("@IsRead").Value = notification.IsRead;
+ replaceNotificationCommand.GetParameter("@Category").Value = string.Empty;
+ replaceNotificationCommand.GetParameter("@RelatedId").Value = string.Empty;
replaceNotificationCommand.Transaction = transaction;