The Free Software Media System - Server Backend & API
Minor fixes to ActivityManager
Patrick Barron6f306f0a1757
diff --git a/Jellyfin.Server.Implementations/Activity/ActivityManager.cs b/Jellyfin.Server.Implementations/Activity/ActivityManager.csindex 65ceee32bf..2deefbe819 100644--- a/Jellyfin.Server.Implementations/Activity/ActivityManager.cs+++ b/Jellyfin.Server.Implementations/Activity/ActivityManager.cs@@ -40,8 +40,9 @@ namespace Jellyfin.Server.Implementations.Activity/// <inheritdoc/>public async Task CreateAsync(ActivityLog entry){- using var dbContext = _provider.CreateContext();- await dbContext.ActivityLogs.AddAsync(entry);+ await using var dbContext = _provider.CreateContext();++ dbContext.ActivityLogs.Add(entry);await dbContext.SaveChangesAsync().ConfigureAwait(false);EntryCreated?.Invoke(this, new GenericEventArgs<ActivityLogEntry>(ConvertToOldModel(entry)));