diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs index 7393c2c863..4105c17886 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs @@ -282,7 +282,7 @@ public class MigrateLibraryDb : IMigrationRoutine private (UserData? Data, string? LegacyUserDataKey) GetUserData(ImmutableArray users, SqliteDataReader dto) { var indexOfUser = dto.GetInt32(1); - var user = users.ElementAtOrDefault(indexOfUser); + var user = users.ElementAtOrDefault(indexOfUser - 1); if (user is null) {