mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update UserDataManager
This commit is contained in:
parent
accdbfaab2
commit
8000a30d9a
@ -170,22 +170,18 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
if (keys.Count > 0)
|
||||
{
|
||||
var key = keys[0];
|
||||
var cacheKey = GetCacheKey(userId, key);
|
||||
var userdata = new UserItemData
|
||||
{
|
||||
UserId = userId,
|
||||
Key = key
|
||||
};
|
||||
_userData[cacheKey] = userdata;
|
||||
return userdata;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (keys.Count > 0)
|
||||
{
|
||||
return new UserItemData
|
||||
{
|
||||
UserId = userId,
|
||||
Key = keys[0]
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user