aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-10 19:19:35 +0000
committerJPVenson <github@jpb.email>2024-11-10 19:19:35 +0000
commitb5bb2261bc15e1b7deb06021cd5271371de7297a (patch)
treef18f763876d077277624618e46745e58fe67803d
parentcec4ad9b656f3582fbb9524d5d5724f8d929f0b4 (diff)
Who thought it be a good idea to let indexes start 1 one please step forward!!!
-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 7393c2c86..4105c1788 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<User> users, SqliteDataReader dto)
{
var indexOfUser = dto.GetInt32(1);
- var user = users.ElementAtOrDefault(indexOfUser);
+ var user = users.ElementAtOrDefault(indexOfUser - 1);
if (user is null)
{