diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-08-05 00:00:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 00:00:15 -0400 |
| commit | 3e974c03519edd5ceb262a475a8b35ff2839add6 (patch) | |
| tree | d18dd39b10c85733c66dc4ce619a304a0087ca03 /Jellyfin.Server.Implementations | |
| parent | ff4489575b0b29638285a0cf255289134900009f (diff) | |
| parent | 393666efcfa85e858857334b5cb5a3ec70586f20 (diff) | |
Merge pull request #3825 from crobibero/api-merge-again
Merge master into api-migration
Diffstat (limited to 'Jellyfin.Server.Implementations')
| -rw-r--r-- | Jellyfin.Server.Implementations/Activity/ActivityManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Activity/ActivityManager.cs b/Jellyfin.Server.Implementations/Activity/ActivityManager.cs index 65ceee32b..2deefbe81 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))); |
