From b5bb2261bc15e1b7deb06021cd5271371de7297a Mon Sep 17 00:00:00 2001 From: JPVenson Date: Sun, 10 Nov 2024 19:19:35 +0000 Subject: [PATCH] Who thought it be a good idea to let indexes start 1 one please step forward!!! --- Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {