소스 검색

fix param order

Luke Pulverenti 8 년 전
부모
커밋
d821da7c0b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Emby.Server.Implementations/Notifications/SqliteNotificationsRepository.cs

+ 2 - 2
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);
                         }
                     });
                 }