mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
Convert UpdateUser to solely async
This commit is contained in:
@@ -457,10 +457,10 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||
}
|
||||
|
||||
StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
|
||||
foreach (ReadOnlySpan<char> i in programIds)
|
||||
foreach (string i in programIds)
|
||||
{
|
||||
str.Append('"')
|
||||
.Append(i.Slice(0, 10))
|
||||
.Append(i[..10])
|
||||
.Append("\",");
|
||||
}
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ namespace Emby.Server.Implementations.Session
|
||||
try
|
||||
{
|
||||
user.LastActivityDate = activityDate;
|
||||
_userManager.UpdateUser(user);
|
||||
await _userManager.UpdateUserAsync(user);
|
||||
}
|
||||
catch (DbUpdateConcurrencyException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user