diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-19 21:42:58 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-19 21:42:58 -0500 |
| commit | d821da7c0bd5a9fb66751bdcb7e8454f20d61712 (patch) | |
| tree | e6bd54e17b13399c41488a497b8d9f5c63b8422b /Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs | |
| parent | 1d5c0128c8254ae4f8777ae6163897625b9265e6 (diff) | |
fix param order
Diffstat (limited to 'Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs')
| -rw-r--r-- | Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs b/Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs index ee900ef33..2f3bee788 100644 --- a/Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs +++ b/Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs @@ -279,7 +279,7 @@ namespace Emby.Server.Implementations.Notifications { connection.RunInTransaction(conn => { - conn.Execute("update Notifications set IsRead=? where UserId=?", userId.ToGuidParamValue(), isRead); + conn.Execute("update Notifications set IsRead=? where UserId=?", isRead, userId.ToGuidParamValue()); }); } } @@ -299,7 +299,7 @@ namespace Emby.Server.Implementations.Notifications foreach (var id in notificationIdList) { - conn.Execute("update Notifications set IsRead=? where UserId=? and Id=?", userIdParam, isRead, id); + conn.Execute("update Notifications set IsRead=? where UserId=? and Id=?", isRead, userIdParam, id); } }); } |
