aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2024-04-20 16:43:25 +0200
committerBond_009 <bond.009@outlook.com>2024-07-29 21:05:23 +0200
commitd3f0346f0498538ae3c0f34e4d17a6e1d044b4f8 (patch)
treee0a4d4b104eaaac2831333d2e6981a93f598f2e4 /Emby.Server.Implementations/Data
parenteeb8c59ff27307b5edd8e056a9ef7d451dbddd04 (diff)
Enable nullable for UserItemData
MetadataResult.GetOrAddUserData doesn't ever get used and is probably broken since the migration to .NET Core as it still expects a Guid for userId
Diffstat (limited to 'Emby.Server.Implementations/Data')
-rw-r--r--Emby.Server.Implementations/Data/SqliteUserDataRepository.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
index 634eaf85e..bfdcc08f4 100644
--- a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
@@ -333,10 +333,10 @@ namespace Emby.Server.Implementations.Data
/// <returns>The user item data.</returns>
private UserItemData ReadRow(SqliteDataReader reader)
{
- var userData = new UserItemData();
-
- userData.Key = reader[0].ToString();
- // userData.UserId = reader[1].ReadGuidFromBlob();
+ var userData = new UserItemData
+ {
+ Key = reader.GetString(0)
+ };
if (reader.TryGetDouble(2, out var rating))
{