update UserDataManager

This commit is contained in:
Luke Pulverenti 2016-05-24 12:58:36 -04:00
parent accdbfaab2
commit 8000a30d9a

View File

@ -170,23 +170,19 @@ namespace MediaBrowser.Server.Implementations.Library
return value; return value;
} }
} }
}
if (keys.Count > 0) if (keys.Count > 0)
{ {
var key = keys[0]; return new UserItemData
var cacheKey = GetCacheKey(userId, key);
var userdata = new UserItemData
{ {
UserId = userId, UserId = userId,
Key = key Key = keys[0]
}; };
_userData[cacheKey] = userdata;
return userdata;
} }
return null; return null;
} }
}
/// <summary> /// <summary>
/// Gets the user data. /// Gets the user data.