aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-11 06:14:08 +0000
committerJPVenson <github@jpb.email>2024-11-11 06:14:08 +0000
commitfb48d0790f4b9be762443d239faaf77057713a51 (patch)
treea31e31e9fe158cb92ceb1a3fa21649ba07d72b0b /Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
parent8dbbb3e243a417464e620721bdb6c567c02ee4f8 (diff)
Fixed Library DB lookup
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
index 5cb89f9ac..571ac95eb 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs
@@ -292,7 +292,7 @@ public class MigrateLibraryDb : IMigrationRoutine
private (UserData? Data, string? LegacyUserDataKey) GetUserData(ImmutableArray<User> users, SqliteDataReader dto)
{
var indexOfUser = dto.GetInt32(1);
- var user = users.ElementAtOrDefault(indexOfUser + 1);
+ var user = users.ElementAtOrDefault(indexOfUser - 1);
if (user is null)
{